[MGNLSTK-1048] Some asset links are no longer properly generated Created: 07/Dec/12  Updated: 11/Feb/13  Resolved: 24/Jan/13

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: demoproject, templates
Affects Version/s: 2.5
Fix Version/s: 2.5

Type: Bug Priority: Blocker
Reporter: Daniel Lipp Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File Screen Shot 2012-12-06 at 11.22.51.jpg    
Issue Links:
causality
caused by MGNLDAM-81 Create a DamURI2RepositoryMapping in ... Closed
dependency
depends upon MAGNOLIA-4728 Add demo-project / demo-features to c... Closed
relation
is related to MGNLSTK-1065 Flash content is not rendered Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Most obvious example: Previewing Demo-Project doesn't render Magnolia Logo in the upper left anymore. Trying to use the Asset chooser and pick another Asset doesn't work either.



 Comments   
Comment by Espen Jervidalo [ 10/Dec/12 ]

<img src="/demo-project/dms/demo-project/img/logos/magnolia-logo-print.gif" alt="Demo Project"> how it should be 4.5
<img src="/demo-project/img/logos/magnolia-logo-print/jcr:content/magnolia-logo-print.gif" alt="Demo Project"> how it is. 5.0

the problem is somewhere in the new dam structure together with
see:
info.magnolia.module.templatingkit.imaging.STKImagingSupport#createLink
info.magnolia.templating.functions.TemplatingFunctions#link
the link created is from this node dam:/demo-project/img/logos/magnolia-logo/jcr:content[Binary]

Maybe we should not pass the nodedata and property to generate the links. this is anyway deprecated since 4.5.4

Comment by Eric Hechinger [ 19/Dec/12 ]

We also have this issue in other places of Demo-Project. And this seems to be a more critical issue.

In Demo-project/Articles/Standard Article (Download white paper link) is fully wrong:
in 4.5.x
<a class="disabled" href="/demo-project/dms/demo-project/downloads/Magnolia_Flyer_4-0/Magnolia%20Flyer%204.0.pdf"></a>
in 5.x
<a href="/magnolia-bundled-webapp/demo-project/downloads/Magnolia_Flyer_4-0.html"></a>

The STK model class call:
TemplatingFunctions.link(String workspace, String nodeIdentifier)
workspace = dam , and nodeIdentifier is valid and point the the correct Node, but the generated link is wrong....
issue seems to come from LinkUtil.

Comment by Eric Hechinger [ 09/Jan/13 ]

Same issue for Flash content. (demo-project/multimedia/flashContent)
should be :
/demo-project/dms/demo-project/flash/flash.swf
is:
/magnolia-bundled-webapp/demo-project/flash/flash/jcr:content/flash.2009-01-29-09-34-26.swf

Comment by Eric Hechinger [ 24/Jan/13 ]

Solve by commits done on MGNLDAM-82

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