[MGNLSTK-1357] Forward mapping doesn't work Created: 17/Feb/14  Updated: 10/Mar/14  Resolved: 17/Feb/14

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 2.0.17, 2.7.2
Fix Version/s: 2.0.18, 2.7.3

Type: Bug Priority: Major
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLSTK-1135 SiteMergeFilter hardcodes Site for va... Closed
Template:
Acceptance criteria:
Empty
Release notes required:
Yes

 Description   
final Site fakeSiteWithProperName = Components.newInstance(currentSite.getClass());

This class can be e.g. Site$$EnhancerByCGLIB$$51b83c2e. Instance of such class then fails with NPE on setName().

Step to reproduce locally :

  1. Create forward mapping:
  • class=info.magnolia.cms.beans.config.DefaultVirtualURIMapping
  • fromURI=/test
  • toURI=forward:/demo-project
  1. Change domain name to localhost.
  2. http://localhost:8080/magnoliaAuthor/test desktop works
  3. http://localhost:8080/magnoliaAuthor/test?mgnlChannel=smartphone white page


 Comments   
Comment by Roman Kovařík [ 17/Feb/14 ]

Commited on master for review.

Generated at Mon Feb 12 07:35:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.