[MAGNOLIA-9017] VirtualUriMappings remove the encoding on URLs Created: 25/Jul/23  Updated: 23/Oct/23

Status: Open
Project: Magnolia
Component/s: Virtual URI mappings
Affects Version/s: 6.2.36
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Support
Team: DeveloperX

 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.


Generated at Mon Feb 12 04:37:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.