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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.4.11, 5.5.1
    • Fix Version/s: 5.4.13, 5.5.5
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Basel 97
    • Story Points:
      3
    • Magnolia Release:
      5.4.13, 5.5.5

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: