Open GeitV opened 6 months ago
Any updates on this one? This bug prevents us from updating to the latest Micronaut version.
Please create a sample app that is reproducing the problem
I was not able to create a reproducer using Micronaut 4.6.3. Either the problem no longer exists or we had a different issue.
Expected Behavior
We got custom
ExceptionHandler
that replacedConversionErrorHandler
which worked just fine on 4.3.5. The codebase is Kotlin and this catched errors where data model field was not nullable, but given input was null (so the error response would match what the @Validated gives)Actual Behaviour
After upgrade to 4.4.2, we are getting
INTERNAL_SERVER_ERROR
instead. Seems like when before the ConversionErrorHandler was used, then it's not any more on nullpointer exceptions.Steps To Reproduce
Add custom request ExceptionHandler:
Send POST request to endpoint, that has non-null field OR send POST request to endpoint with unknown enum
Environment Information
Example Application
No response
Version
4.4.2