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

Invalid redirect URL when using an outbound rewrite rule using the UrLRewriteFilter

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      We get something like:

      /xwikihttp://localhost:8080/xwiki/bin/...
      

      This happens when the outbound rule modifies the context path. The reason is caused by some hack in XWikiAuthServiceImpl.stripContextPathFromURL() which tries to remove the context path to please the SecurityFilter framework we're using which seem to require relative URLs without context paths...

      And the issue is that stripContextPathFromURL() doesn't take into account the possible effects of HttpServletResponse.encodeURL().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: