Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5215

CspInterceptor assumes Session was already created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.0
    • 6.0.3
    • Core Interceptors
    • None

    Description

      ERROR DefaultDispatcherErrorHandler Exception occurred during processing request: null 
      java.lang.NullPointerException
      at com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest.getSession(AwsHttpServletRequest.java:139)
      at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:270)
      at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:171)
      at org.apache.struts2.interceptor.csp.DefaultCspSettings.associateNonceWithSession(DefaultCspSettings.java:83)
      at org.apache.struts2.interceptor.csp.DefaultCspSettings.addCspHeaders(DefaultCspSettings.java:71)
      at org.apache.struts2.interceptor.csp.CspInterceptor.beforeResult(CspInterceptor.java:49)
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:274)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lukaszlenart Lukasz Lenart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m