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

When selector is present in URL, dots in file name are treated as file extensions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.11, 5.6.6
    • None
    • None
    • None
    • Kromeriz 144, Kromeriz 145, Kromeriz 146, Kromeriz 147
    • 13

    Description

      Assume we have a URL like /path/to/my/cool-page-1.12.html.

       

      When requested normally, the URL resolves properly.

      However, if we instead request /path/to/my/cool-page-1.12~foo=bar~.html, the URL does not resolve properly.

       

      This is due to the RepositoryMappingFilter and its handling of selectors. The filter strips out selectors and everything after the filter (including the file extension). It then passes the path (minus selector and extension) to a URI2RepositoryMapping. That mapping treats the .12 as a file extension, and incorrectly strips it out.

       

      EDIT: New PR here - https://git.magnolia-cms.com/projects/PLATFORM/repos/main/pull-requests/598/overview

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ajuran Antonín Juran
              jspence James Spence
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD