Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3119

unicodenormalization filter tries to overwrite orginaluri and orginalurl of aggregationstate: there are two pitfalls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3
    • None
    • core
    • None

      unicodenormalization filter tries to overwrite orginaluri and orginalurl of aggregationstate.
      There are two pitfalls:

      1. if the url is sent in nfd and then normalized to nfc by the filter, that tries to set it back on AggregationState using setOriginalUri; but the new url is not equal (nfd -> nfc) to the previous and this will throw an illegalstateexception
      2. even if the original uri is nfc, but the contextpath has the same name as the first clean uri token:
        i.e. the uri is http://www.mydomain.com/thename/thename/en/home.html with context path = "/thename" and clean url "/thename/en/home.html"
        • contenttypefilter set originaluri /thename/en/home.html
        • unicodenormalizationfilter tries to overwrite with normalized /thename/en/home.html but the AggregationState.setOriginalUri strips /thename, compares /thename/en/home.html (original) with and /en/home.html and then throws illegalstateexception!

        Acceptance criteria

              manuelmolaschi Manuel Molaschi
              manuelmolaschi Manuel Molaschi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD