wip
This commit is contained in:
parent
8a8eb84fe6
commit
6f669f9ccd
|
@ -451,7 +451,7 @@ public class ResourceProviderCustomSearchParamR4Test extends BaseResourceProvide
|
|||
myClient
|
||||
.search()
|
||||
.forResource(ExplanationOfBenefit.class)
|
||||
.where(new StringClientParam("created").matchesExactly().value("01-01-2020"))
|
||||
.where(new StringClientParam("created").matches().value("01-01-2020"))
|
||||
.returnBundle(Bundle.class)
|
||||
.execute();
|
||||
|
||||
|
@ -464,7 +464,7 @@ public class ResourceProviderCustomSearchParamR4Test extends BaseResourceProvide
|
|||
myClient
|
||||
.search()
|
||||
.forResource(ExplanationOfBenefit.class)
|
||||
.where(new StringClientParam("service-date").matchesExactly().value("01-01-2020"))
|
||||
.where(new StringClientParam("service-date").matches().value("01-01-2020"))
|
||||
.returnBundle(Bundle.class)
|
||||
.execute();
|
||||
|
||||
|
|
|
@ -107,7 +107,10 @@ public class ExceptionHandlingInterceptor {
|
|||
@Hook(Pointcut.SERVER_PRE_PROCESS_OUTGOING_EXCEPTION)
|
||||
public BaseServerResponseException preProcessOutgoingException(RequestDetails theRequestDetails, Throwable theException, HttpServletRequest theServletRequest) throws ServletException {
|
||||
BaseServerResponseException retVal;
|
||||
if (theException instanceof DataFormatException) {
|
||||
//TODO GGG this is _not_ the fix.
|
||||
if (theException instanceof InternalErrorException && theException.getCause().getCause() instanceof DataFormatException) {
|
||||
retVal = new InvalidRequestException(theException.getCause().getCause());
|
||||
} else if (theException instanceof DataFormatException) {
|
||||
// Wrapping the DataFormatException as an InvalidRequestException so that it gets sent back to the client as a 400 response.
|
||||
retVal = new InvalidRequestException(theException);
|
||||
} else if (!(theException instanceof BaseServerResponseException)) {
|
||||
|
|
Loading…
Reference in New Issue