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

Fix NPE in ServletActionContext.getRequest/getResponse with Struts

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              qpham@atlassian.com Quan Pham
              ggautam Ganesh Gautam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: