[MAGNOLIA-6158] jsp taglib cmsfn:link returns incorrect path Created: 07/Apr/15  Updated: 03/Oct/18  Resolved: 03/Oct/18

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 5.3.7
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Joan Fang Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Window 7, Sprint Tool Suites, Blossom


Issue Links:
supersession
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   

I have created a blossom project in magnolia version 5.3.2. and I just upgrade it to version 5.3.7.
after upgrade, all the links created using jsp taglib were broken.
For example:
if the content.logoUrl 's input value is /test/logimage
here is the jsp code:
<c:set var="logoImage" value="${cmsfn:content(content.logoUrl,'dam')}" />
<img alt="logo" src="${cmsfn:link(cmsfn:asContentMap(logoImage))}">

in version 5.3.2, ${cmsfn:link(cmsfn:asContentMap())} will return "/dam/jcr:[uuid]/logoimage"
but in version 5.3.7, it returns /test/logimage.html"

so in 5.3.7 all the links created this way were broken.
I tried to searching for documents for how to migrate from 5.3.2 to 5.3.7, but it seems I don't need special steps or script changes.



 Comments   
Comment by Roman Kovařík [ 03/Oct/18 ]

Marking as won't fix since the JSP will be dropped in M6.0.

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