-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an exception occurs during Pre-Flight request processing, @ExceptionHandler fails to handle it. #27338
Comments
@ddaaac the pre-flight handler should update the response and typically there should be no need for any exception handling. Is Note that starting in 5.3 we do support use of |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Affects: 5.2.12
Hi, I have used interceptor to verify something. And an exception occurred in the interceptor while processing the Pre-Flight request. However, since
PreFlightHandler
is not a child ofHandlerMethod
, the exception that occurs during the Pre-Flight process is not handled by theExceptionHandler
.(SinceAbstractHandlerMethodExceptionResolver
only apply toHandlerMethod
). So, response status becomes 500 not status I intended.Is this intended or just a bug?
The text was updated successfully, but these errors were encountered: