lprimak commented on PR #2764:
URL: https://github.com/apache/shiro/pull/2764#issuecomment-4676926783

   Unfortunately this was a wild goose chase.
   The original code was working properly after all, there was no logic 
inversion.
   
   JSR-250 annotations are handled by Jakarta Security normally, this is why 
they are not added
   to `ShiroAnnotationFilterFeature`, unless 
`SHIRO_WEB_JAXRS_DISABLE_PRINCIPAL_PARAM` is enabled.
   Only in that case, the JSR-250 annotations are explicitly added to the 
feature and handled by Shiro directly.
   instead of the Jakarta Rest container / Jakarta Security.
   
   Moral of the story / day: If reporting issues, always, always provide and 
test with a reproducer.
   Do not rely on AI alone. This will lead us all astray, every time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to