[MAGNOLIA-7530] JspTemplatingFunction#link(ContentMap contentMap, String propertyName) throws RepositoryException Created: 26/Apr/19  Updated: 26/Apr/19  Resolved: 26/Apr/19

Status: Closed
Project: Magnolia
Component/s: taglibs, templating
Affects Version/s: 5.6
Fix Version/s: None

Type: Bug Priority: Low
Reporter: Richard Gange Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: deprecated, jsp, templating-jsp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

You can see here it takes a property as a parameter but does nothing with it.

In the end:

of info.magnolia.templating.jsp.cmsfn.JspTemplatingFunction.link(ContentMap contentMap, String propertyName) just ignored the propertyName:
public static String link(ContentMap contentMap, String propertyName) throws RepositoryException
{ *return* getTemplatingFunctions().link(contentMap);  } 


 Comments   
Comment by Richard Gange [ 26/Apr/19 ]

Won't do. JSP is deprecated since 6.0

Comment by Richard Gange [ 26/Apr/19 ]

The workaround is to use cmsfn.linkForWorkspace.

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