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

            [CONFSERVER-79613] Fix ClassCastException in doeditcolourscheme.action with Struts

            Ganesh Gautam made changes -
            Fix Version/s New: 8.0.0-struts-m48 [ 103098 ]
            Minh Tran made changes -
            QA Demo Status Original: Not Needed [ 14332 ] New: Done [ 14331 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Review [ 10051 ] New: Closed [ 6 ]
            Ganesh Gautam made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 680197 ]
            Adilson Carvalho (Inactive) made changes -
            Story Points Original: 3 New: 2
            Adilson Carvalho (Inactive) made changes -
            Sprint Original: 🐕 Dingo [ 6849 ] New: 🐕 Dingo, Cheese Meteor starting with E [ 6849, 6862 ]
            Minh Tran made changes -
            Status Original: Awaiting Merge [ 10064 ] New: In Review [ 10051 ]
            Minh Tran made changes -
            QA Demo Status Original: Not Done [ 14330 ] New: Not Needed [ 14332 ]
            Status Original: In Review [ 10051 ] New: Awaiting Merge [ 10064 ]
            Minh Tran made changes -
            Fix Version/s New: 8.0.0 [ 101718 ]
            QA Kickoff Status Original: Not Done [ 14234 ] New: Not Needed [ 14236 ]
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            Minh Tran made changes -
            Remote Link New: This issue links to "R8.0 P1. Performance › Page Weight Ratchet Build › issue-80-CONFSERVER-79613-fixing-ClassCastException-in-doeditcolourscheme (server-syd-bamboo)" [ 677945 ]
            Minh Tran made changes -
            Remote Link New: This issue links to "R8.0 P1. Baseline › Main Plugins - Samurai › issue-80-CONFSERVER-79613-fixing-ClassCastException-in-doeditcolourscheme (server-syd-bamboo)" [ 677798 ]

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

                Created:
                Updated:
                Resolved: