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

VirtualUriMappings remove the encoding on URLs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.2.36
    • Virtual URI mappings
    • None

    Description

      Steps to reproduce

      1. Create a virtual URI mapping that forwards towards a REST endpoint:
        class: info.magnolia.virtualuri.mapping.RegexpVirtualUriMapping
        fromUri: \/\.rest\/delivery\/test\/v1(.*)toUri: forward:/.rest/delivery/pages/v1$1 
      1. Add parameters to an URL like this: http://localhost:8080/magnoliaAuthor/.rest/delivery/pages/v1/?@name=Page-A%7CPage-B
      2. Perform the same request, but through an URL that gets forwarded, in this case: http://localhost:8080/magnoliaAuthor/.rest/delivery/test/v1/?@name=Page-A%7CPage-B

      Expected results

      Both queries work without issues and the encoding is kept untouched.

      Actual results

      The encoding is not handled properly on the second request, making the REST request fail.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgaona Roberto Gaona
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD