core
core copied to clipboard
`AuthenticationException`s do not cause a response in the designated error format
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.