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

VirtualUriMappings remove the encoding on URLs

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:

                  Bug DoR
                  Task DoD