- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2k
Issue #12720 - fix servlet error dispatch for errors generated by SecurityHandler #13693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: jetty-12.1.x
Are you sure you want to change the base?
Issue #12720 - fix servlet error dispatch for errors generated by SecurityHandler #13693
Conversation
…curityHandler Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
| @lachlan-roberts the CI failures look to be more than flakes. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more than flakes
| @gregw the tests are failing because the  So do you think i should adjust both the  | 
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
        
          
                jetty-core/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                jetty-core/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                jetty-core/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Lachlan Roberts <[email protected]>
Closes #12720
Currently
SecurityHandlerdoes onlyResponse.writeErrorwhen a 403 response needs to be sent. However this will not dispatch to a servlet error page, for this we need to doAuthenticationState.writeErrorand handle the case if it returnsAuthenticationState.ServeAs.