Replies: 3 comments 3 replies
-
Sure, we could add a log trace. |
Beta Was this translation helpful? Give feedback.
-
Not sure I understand the issue you are describing. Do you have a sample app which reproduces the desired behaviour and the actual behaviour. |
Beta Was this translation helpful? Give feedback.
-
Maybe that could be clarified a bit more in the security documentation now the name of the switch and the documentation give the impression that only 404 routes are hidden in this way but apparently more response codes are. Maybe indicate which codes are covered by this setting. Also would be great to see a warning in the log that contains the actual code when it is transformed into 401/403 |
Beta Was this translation helpful? Give feedback.
-
Hello ,
I am using Micronaut 3.7.0 which uses micronaut-security 3.8.0
The setting micronaut.security.reject-not-found is configured to true by default.
Now I have a request that initially was returning 403, after setting micronaut.security.reject-not-found to false. The status returned turns out to actually be 413 (payload/request too large).
Based on the micronaut security docs I would expect that this setting only affects 404 and translate those into 403.
Is this a bug for which I should create an issue or is this setting supposed to convert more than 404 ?
Also is it possible to see the "original" status codes in the server logs whenever reject-not-found causes a translation ?
Beta Was this translation helpful? Give feedback.
All reactions