changeloggingcategory.action pass duplicated nodeId via both query parameter and form attribute

XMLWordPrintable

    • Severity 3 - Minor
    • CtB - Improve Existing

      Issue Summary

      changeloggingcategory.action pass duplicated nodeId via both query parameter and form attribute

      Steps to Reproduce

      1. Create a confluence cluster (2 nodes)
      1. Goto administration > Logging and Profiling, click button `Enable SQL Logging` or any other `Enable xxxxxx` button

      Expected Results

      SQL logging successfully enabled/disabled

      Actual Results

      500 error page displayed.

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

      -- url: /admin/changeloggingcategory.action | userName: admin | referer: https://instenv-761564-gf2w.instenv.internal.atlassian.com/admin/viewlog4j.action?nodeId=371af000 | traceId: fbe51d16903268bccom.atlassian.confluence.cluster.NoSuchClusterNodeException: Invalid node ID: 371af000, 371af000	at com.atlassian.confluence.cluster.nutcluster.NutclusterClusterManager.lambda$submitToNode$1(NutclusterClusterManager.java:523)	at java.base/java.util.Optional.orElseThrow(Optional.java:403)	at com.atlassian.confluence.cluster.nutcluster.NutclusterClusterManager.submitToNode(NutclusterClusterManager.java:523)	at com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction.execute(ConfigureLoggingAction.java:267)	at com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction.changeLoggingCategory(ConfigureLoggingAction.java:240)	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)	at java.base/java.lang.reflect.Method.invoke(Method.java:565)	at ognl.OgnlRuntime.invokeMethodInsideSandbox(OgnlRuntime.java:909)	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:894)	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1643)	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:44)	at org.apache.struts2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:99)	at org.apache.struts2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:91)	at com.atlassian.confluence.impl.struts.ConfluenceMethodAccessor.callMethod(ConfluenceMethodAccessor.java:20)	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1699)	at ognl.ASTMethod.getValueBody(ASTMethod.java:72)	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)	at ognl.SimpleNode.getValue(SimpleNode.java:206)	at ognl.Ognl.getValue(Ognl.java:408)	at org.apache.struts2.ognl.OgnlUtil.lambda$ognlGet$3(OgnlUtil.java:438)	at org.apache.struts2.ognl.OgnlUtil.withRoot(OgnlUtil.java:790)	at org.apache.struts2.ognl.OgnlUtil.ognlGet(OgnlUtil.java:438)	at org.apache.struts2.ognl.OgnlUtil.callMethod(OgnlUtil.java:411) 

      Workaround

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

              Assignee:
              Jeffery Xie
              Reporter:
              Jeffery Xie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: