You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In issue #111, stacktraces were supposed to not be included by default. In doing some digging, it looks like AbstractJaxRsProvider#createOutcome(DataFormatException) always includes the stacktrace in the details of the OperationOutcome. So if an invalid date format is sent for a DateParam, the whole stracktrace will be included in the response. It seems like it'd be idea if DataFormatExceptions would be handled like other exceptions by having the stacktrace be included if the Exception type is included as such in ExceptionHandlingInterceptor.
(Note, this issue still exists in the latest 3.1.0-SNAPSHOT build).
See screenshot from Postman for an example:
The text was updated successfully, but these errors were encountered:
… when using AbstractJaxRsProviders, the stacktrace will be included in the OperationOutcome details only if AbstractJaxRsProvider#withStrackTrace() is configured to return true
…tException as an InvalidRequestException so that it still gets sent as a 400 response but now DataFormatException stacktraces can now be conditionally sent based on the ExceptionHandlingInterceptor#setReturnStackTracesForExceptionTypes(Class<?>...) configuration
InfiniteLoop90
changed the title
Unable to exclude stacktrace from OperationOutcomes when using JAX-RS providers
Unable to exclude stacktrace from DataFormExceptions in OperationOutcomes when using JAX-RS providers
Oct 23, 2017
In issue #111, stacktraces were supposed to not be included by default. In doing some digging, it looks like
AbstractJaxRsProvider#createOutcome(DataFormatException)
always includes the stacktrace in the details of the OperationOutcome. So if an invalid date format is sent for aDateParam
, the whole stracktrace will be included in the response. It seems like it'd be idea ifDataFormatException
s would be handled like other exceptions by having the stacktrace be included if the Exception type is included as such inExceptionHandlingInterceptor
.(Note, this issue still exists in the latest 3.1.0-SNAPSHOT build).
See screenshot from Postman for an example:
The text was updated successfully, but these errors were encountered: