[MGNLFORM-280] building url redirects Created: 17/Feb/16  Updated: 19/May/22  Resolved: 19/May/22

Status: Closed
Project: Magnolia Form Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Noa Lamig Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MGNL 5.3.10
Java 1.7.80
Tomcat 8.0.28


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
Date of First Response:

 Description   

The solution from MGNLFORM-249 results in an error in our environment.

We are generating complete Urls (like https://demopublic.magnolia-cms.com/contact.html) in our project. The reason is that we are sharing our header and footer with some micro-sites outside. These websites are hosted and maintened by partners. We implemented it because our users should not relize that they left our website. That's the reason why we changed the result of LinkUtil.createAbsoluteLink(). The encoded url result is https%3A// which results in final redirect (org.apache.catalina.connector.Response#toAbsolute(String) to https://demopublic.magnolia-cms.com/https%3A//...

Even if a different implementation would be better in our project there are 2 issues for me:

  1. I would expect the LinkUtil.createAbsoluteLink() is generating the correct link to the content and
  2. FormStateUtil.sendRedirect(String uuid, String workspace) does not encode the rederict URL


 Comments   
Comment by Roman Kovařík [ 19/May/22 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

Generated at Mon Feb 12 05:38:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.