Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-79611

Fix NPE in ServletActionContext.getRequest/getResponse with Struts

      Issue Summary

      NPE in plugins/servlet/confluence/placeholder/macro-icon

      Steps to Reproduce

      Hit /plugins/servlet/confluence/placeholder/macro-icon

      Expected Results

      No exception

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      2022-08-02 08:23:48,836 ERROR [http-nio-8080-exec-8] [[Catalina].[localhost].[/confluence].[servlet-module-container-servlet]] log Servlet.service() for servlet [servlet-module-container-servlet] threw exception
       -- url: /confluence/s/52jafz/9001/16rwfyk/_/plugins/servlet/confluence/placeholder/macro-icon | userName: anonymous | traceId: 7b972d371a48a27b 
       java.lang.NullPointerException: null
          at org.apache.struts2.ServletActionContext.getRequest(ServletActionContext.java:113) ~[org.apache.struts_struts2-core-2.5.30-atlassian-3-m02.jar:2.5.30-atlassian-3-m02]
          at com.atlassian.confluence.util.message.MessagesDecoratorFilter.addMessages(MessagesDecoratorFilter.java:84) ~[com.atlassian.confluence_confluence-8.0.0-SNAPSHOT.jar:?]
          at com.atlassian.confluence.util.message.MessagesDecoratorFilter.doFilter(MessagesDecoratorFilter.java:70) ~[com.atlassian.confluence_confluence-8.0.0-SNAPSHOT.jar:?]
          at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[com.atlassian.core_atlassian-core-8.0.0.jar:?]
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [CONFSERVER-79611] Fix NPE in ServletActionContext.getRequest/getResponse with Struts

            A fix for this issue is available in Confluence Server and Data Center 8.0.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 8.0.0. Upgrade now or check out the Release Notes to see what other issues are resolved.
            Ganesh Gautam made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Ganesh Gautam made changes -
            Fix Version/s New: 8.0.0-m39 [ 102890 ]
            Quan Pham made changes -
            Status Original: Awaiting Merge [ 10064 ] New: Waiting for Release [ 12075 ]
            Quan Pham made changes -
            QA Demo Status Original: Not Done [ 14330 ] New: Not Needed [ 14332 ]
            Status Original: In Review [ 10051 ] New: Awaiting Merge [ 10064 ]
            Quan Pham made changes -
            Fix Version/s Original: 8.0.0-struts-m020 [ 102217 ]
            Fix Version/s New: 8.0.0 [ 101718 ]
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            Ganesh Gautam made changes -
            Remote Link New: This issue links to "R8.0 P1. Baseline › Main Plugins - Samurai › upgrades-issue-80-CONFSERVER-79611-add-new-struts-filter-for-forward-type (server-syd-bamboo)" [ 679755 ]
            Ganesh Gautam made changes -
            Remote Link New: This issue links to "R8.0 P1. Baseline › Data Center Tests, Postgres 14.x, Tomcat 9, Java 11 › upgrades-issue-80-CONFSERVER-79611-add-new-struts-filter-for-forward-type (server-syd-bamboo)" [ 679939 ]
            Ganesh Gautam made changes -
            Remote Link New: This issue links to "R8.0 P3. Major Release › Tier 3 Plugins against Confluence latest (Phoenix) › upgrades-issue-80-CONFSERVER-79611-add-new-struts-filter-for-forward-type (server-syd-bamboo)" [ 679938 ]
            Ganesh Gautam made changes -
            Remote Link New: This issue links to "R8.0 P1. Baseline › WebDriver Visual Regression tests (Chrome 3.141.59) › upgrades-issue-80-CONFSERVER-79611-add-new-struts-filter-for-forward-type (server-syd-bamboo)" [ 679754 ]

              qpham@atlassian.com Quan Pham
              ggautam Ganesh Gautam
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: