SecureRequestCustomizer.SslAttributes does not cache cert chain like before #4923
Labels
Bug
For general bugs on Jetty side
Performance
Sponsored
This issue affects a user with a commercial support agreement
Jetty version
9.4.29
Description
When a long lived connection has multiple requests and something accesses the
HttpServletRequest.getAttributes("javax.servlet.request.X509Certificate")
then the entire Certificate Chain is resolved with each access of the Attributes.The change in PR #4816 apparently got rid of the SslSession
CachedInfo
object that made this lookup efficient.Old code in 9.4.28 looks like this...
https://github.com/eclipse/jetty.project/blob/jetty-9.4.28.v20200408/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java#L299
https://github.com/eclipse/jetty.project/blob/ab228fde9e55e9164c738d7fa121f8ac5acd51c9/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java#L289-L307
The text was updated successfully, but these errors were encountered: