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

When requesting an URI that starts with the handle of an URI2RepositoryMapping, result is 404

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4.13, 5.5.5
    • 5.4.11, 5.5.1
    • None
    • None
    • Basel 97
    • 3

      When requesting an URI that starts with the handle of an URI2RepositoryMapping, result is 404, because the mapping will prefix the URI internally with the exact same handle (URI now contains the handle twice). This results in Magnolia not being able to find the node, e.g. for the demo:

      http://localhost:8080/travel will internally try to resolve /travel/travel → 404

      Source of the problem

      The cause is MAGNOLIA-6882 and the removal of the infamous maybeHandle-check, which would check whether given handle would actually exist in given repository and if not, would try to remove the double-up-handle.

      Desired behavior

      Unless the URI2RepositoryMapping has a URIPrefix defined, requesting the root-node (or any other subnode) should internally be handled correctly.

        Acceptance criteria

              pmundt Philip Mundt
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD