Uploaded image for project: 'Wiki Editor Tools'
  1. Wiki Editor Tools
  2. WIKIEDITOR-29

Syntax highlighting does not work with some apache frontends

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      It seems that this URL is requested from the server:

      http://webide-demo.devxwiki.com/xwiki/wiki/webidetemplate/jsx/SyntaxHighlighting/HighlightingModeXwiki%2F2.1?discard
      

      Encoded forward slashes are not ok in URLs, apache will either strip them ( if AllowEncodedSlashes is false ) or decode them if it is true, unless it is set as

      AllowEncodedSlashes NoDecode
      

      See: http://stackoverflow.com/questions/4390436/need-to-allow-encoded-slashes-on-apache

      Furthermore Tomcat does not accept encoded slashes either, see:
      http://stackoverflow.com/questions/19576777/why-does-apache-tomcat-handle-encoded-slashes-2f-as-path-separators

      I realize that due to CVE-2007-0450 Tomcat's default behaviour was changed to reject percent-encoded slashes in the path.
      

        Attachments

          Activity

            People

            • Assignee:
              Yann Flory Yann Flory
              Reporter:
              calebjamesdelisle CalebJamesDeLisle
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: