Fix platform.ctk-plugin with Struts

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      platform.ctk-plugin with Struts is broken

      Steps to Reproduce

      Hit /confluence/rest/functest/1.0/junit/getTests
       

      Expected Results

      No exception

      Actual Results

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

      2022-08-02 06:34:38,069 ERROR [http-nio-8080-exec-1] [com.atlassian.functest.functest-plugin] getTests Failed to scan test class: class com.atlassian.refapp.ctk.sal.XsrfRequestValidatorTest
       -- url: /confluence/rest/functest/1.0/junit/getTests | userName: anonymous | traceId: c021a16da807a8ce
      
      Caused by: java.lang.ClassNotFoundException: org.springframework.mock.web.MockHttpServletRequest not found by com.atlassian.platform.ctk-plugin [313]
          at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1585)
          at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
          at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1970)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 340 more
      

      Workaround

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

            Assignee:
            Unassigned
            Reporter:
            Ganesh Gautam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: