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

Fix ClassCastException in doeditcolourscheme.action with Struts

      Issue Summary

      ClassCastException in doeditcolourscheme.action with Struts

      Steps to Reproduce

      Hit /admin/doeditcolourscheme.action

      Expected Results

      No exception

      Actual Results

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

      2022-08-02 08:35:39,933 ERROR [http-nio-8080-exec-8] [apache.struts2.dispatcher.DefaultDispatcherErrorHandler] sendErrorResponse Exception occurred during processing request: class org.apache.struts2.dispatcher.Parameter$Request cannot be cast to class [Ljava.lang.String; (org.apache.struts2.dispatcher.Parameter$Request is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @3c3562c0; [Ljava.lang.String; is in module java.base of loader 'bootstrap')
       -- url: /confluence/admin/doeditcolourscheme.action | userName: admin | referer: http://localhost:8080/confluence/admin/lookandfeel.action | traceId: 898b486971dd9e56
      java.lang.ClassCastException: class org.apache.struts2.dispatcher.Parameter$Request cannot be cast to class [Ljava.lang.String; (org.apache.struts2.dispatcher.Parameter$Request is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @3c3562c0; [Ljava.lang.String; is in module java.base of loader 'bootstrap')
          at com.atlassian.confluence.admin.actions.lookandfeel.ColourSchemeAction.getFromColourMap(ColourSchemeAction.java:90)
          at com.atlassian.confluence.admin.actions.lookandfeel.ColourSchemeAction.validateAndPopulateColourScheme(ColourSchemeAction.java:83)
          at com.atlassian.confluence.admin.actions.lookandfeel.ColourSchemeAction.execute(ColourSchemeAction.java:25)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      Workaround

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

          Form Name

            [CONFSERVER-79613] Fix ClassCastException in doeditcolourscheme.action 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.

              mtran@atlassian.com Minh Tran
              ggautam Ganesh Gautam
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: