Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12660

With xwiki.showviewaction=0 and url.standard.hideViewAction=true, requests for nested document gets mapped to UnknownAction.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.2
    • Fix Version/s: 7.3-milestone-1
    • Component/s: Old Core
    • Labels:
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Awaiting Contributor feedback
    • Similar issues:

      Description

      A simple workaround might have been to set xwiki.unknownActionResponse=view, however, this will not work any longer because of this hack in com.xpn.xwiki.XWiki.prepareDocuments:

              // TODO: This is a big hack and needs to be fixed ASAP. ATM the WebJAR feature is bound as an Entity Resource
              // Handler which is not correct. It should be using its own Resource Type (since it's not a Resource Entity).
              // For this we need to introduce a new Servlet/Filter to be able to hook in new Resource Types. When this
              // is done remove this. See also http://jira.xwiki.org/browse/XWIKI-11056
              // Note: The action is "unknown" for webjars since it's not defined in struts-config.xml.
              // Note: Be careful to not add other unknown actions since permissions wouldn't be checked for those either...
              if (!context.getAction().equals("unknown")) {
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                aj Andreas Jonsson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: