[MGNLCACHE-364] CLONE - Redirect URL being wrongly encoded Created: 07/Feb/24  Updated: 07/Feb/24

Status: Open
Project: Cache Modules
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0, 5.9.11

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Jaroslav Simak
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MAGNOLIA-9263 Redirect URL being wrongly encoded In Progress
relation
is related to MAGNOLIA-8821 VirtualURI mapping to URL with non as... Closed
is related to MGNLCACHE-348 VirtualURI mapping to URL with non as... Closed
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
Testcase included:
Yes
Release notes required:
Yes
Epic Link: Support
Team: DeveloperX
Work Started:

 Description   

What seems to be another corner case of MAGNOLIA-8821 we have an issue where if a redirect URL is used after a login the protocol portion of the URL is being wrongly encoded. It's because redirection scheme does not take into account absolute urls.

Basically "http://" is changed to "http%3A//" where the colon is being encoded.

Reproduce

  • magnolia.utf8.enabled=true
  • One option is to configure the CAS module (version 1.3.2) by setting parameters: casLoginURL, casLogoutURL, casServiceURL, casTicketRequestParameter,casValidateURL.

Expected
Should be redirected and the url should be correctly compressed.

Actual
Magnolia fails to redirect after several attempts due to wrong compression of the redirect url ("https%3A//.....")

Workaround
Bypass the GZipFilter to ignore compressing the redirect url.


Generated at Sun Feb 11 23:54:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.