core icon indicating copy to clipboard operation
core copied to clipboard

`AuthenticationException`s do not cause a response in the designated error format

Open nesl247 opened this issue 3 years ago • 0 comments

API Platform version(s) affected: 3.0.0

Description
Throwing an AccountStatusException in a UserChecker does not cause the response to occur in the appropriate error format as violation errors due.

Additional Context
I believe this is caused because the ExceptionListener is only called if the ExceptionEvent doesn't have a response set. However, the response is set by the authentication failure listeners.

nesl247 avatar Sep 21 '22 19:09 nesl247