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

Backport to 8.5 CONFSERVER-82535: Unable to view previous version of the page using 'change history' macro due to removed URL action mapping

    XMLWordPrintable

Details

    Description

      Issue Summary

      Using the page link in the 'Change History' macro leads to a 'Page Not Found' error.

      The URL displayed in the Change History macro:

      Confluence Version URL from Change History macro Working?
      Confluence 8.0.0 /display/<spacekey>/viewpage.action?pageId=<pageID>
      Confluence 7.19.6 /display/<spacekey>/viewpage.action?pageId=<pageID>

      The URL displayed in the Page History list ( > Page History:

      Confluence Version URL from Change History macro Working?
      Confluence 8.0.0 /pages/viewpage.action?pageId=<pageID>
      Confluence 7.19.6 /pages/viewpage.action?pageId=<pageID>

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a page
      2. Make changes to the page and save multiple times.
      3. Add change history macro to the page.
      4. When we access the page we could see multiple versions of the page in the 'Change History' macro's list.
      5. When trying to navigate to a previous version of the page by clicking one of the links in the list, we get a 'Page Not Found' error.

      Expected Results

      When any page version is chosen, it should take us to the relevant version.

      Actual Results

      We get to see the 'Page Not Found' error and the below error is logged in the atlassian-confluence.log:

      2023-03-23 16:14:58,946 WARN [http-nio-6813-exec-5] [apache.struts2.dispatcher.Dispatcher] logConfigurationException Could not find action or result: /c813/display/SX/viewpage.action?pageId=98380
       -- url: /c813/display/SX/viewpage.action | userName: admin | referer: http://localhost:6813/c813/display/SX/Change+History+macro+test | traceId: 412bf3d3e8e9a26e
      There is no Action mapped for namespace [/display/SX] and action name [viewpage] associated with context path [/c813]. - [unknown location]
      	at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:195)
      	at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:57)
      	at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:32)
      	at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:60)
      	at com.atlassian.confluence.impl.struts.ConfluenceStrutsDispatcher.serviceAction(ConfluenceStrutsDispatcher.java:97)
      	at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
      	at org.apache.struts2.dispatcher.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:77)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.lambda$doFilter$0(DelegatingPluginFilter.java:57)
      	at com.atlassian.confluence.plugins.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:52)
      	[...]
      

      Workaround

      1. Go to the page and choose   > Page History
      2. Choose a version number to view the content of that version.

      Attachments

        Issue Links

          Activity

            People

              8b5c2ab424ac Jing Zheng
              91d55d8c0ba7 Sunil Kumar C
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: