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.

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A
    • Awaiting Contributor feedback

    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

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

              Dates

                Created:
                Updated:
                Resolved: