[MAGNOLIA-1634] UUIDLink cannot handle URLs that contain complex parameters Created: 20/Jul/07  Updated: 23/Jan/13  Resolved: 23/Jan/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: zam6ak Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

3.1-SNAPSHOT
JBoss 4.0.5GA


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   

If a complex paramter is passed to Magnolia page I get the exception below.

The url sample:

http://server.company.org/magnolia-cms/some-company-org/eservice/business/filebox.html?p4if_p=\File%20Box\Quick%20Reference%20Guides\Strategy%20Management\WIT

(i also tried double backslash and encoding the backslash)

The steps I took:

1. create a link to a magnolia page via fckEditor and save.
2. edit the link via source and append parameter

ERROR info.magnolia.cms.link.UUIDLink 20.07.2007 13:38:28 – can't parse [some-company-org/eservice/business/filebox.html?p4if_p=\File%20Box\Quick%20Reference%20Guides\Strategy%20Management\WIT]
ERROR info.magnolia.cms.servlets.MVCServletHandlerImpl 20.07.2007 13:38:28 – can't call command: save
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:334)
at info.magnolia.cms.beans.config.ContentRepository.getMappedRepositoryName(ContentRepository.java:453)
at info.magnolia.cms.beans.config.ContentRepository.getRepositoryMapping(ContentRepository.java:565)
at info.magnolia.cms.beans.config.ContentRepository.getDefaultWorkspace(ContentRepository.java:500)
at info.magnolia.context.AbstractContext.getHierarchyManager(AbstractContext.java:138)
at info.magnolia.context.MgnlContext.getHierarchyManager(MgnlContext.java:112)
at info.magnolia.cms.link.UUIDLink.getNode(UUIDLink.java:196)
at info.magnolia.cms.link.UUIDLink.getUUID(UUIDLink.java:277)
at info.magnolia.cms.link.UUIDLink.toPattern(UUIDLink.java:149)
at info.magnolia.cms.util.LinkUtil.convertAbsoluteLinksToUUIDs(LinkUtil.java:94)
at info.magnolia.module.admininterface.SaveHandlerImpl.updateLinks(SaveHandlerImpl.java:427)
at info.magnolia.module.admininterface.SaveHandlerImpl.processRichEdit(SaveHandlerImpl.java:321)
at info.magnolia.module.admininterface.SaveHandlerImpl.processSaveInfo(SaveHandlerImpl.java:268)
at info.magnolia.module.admininterface.SaveHandlerImpl.save(SaveHandlerImpl.java:192)
at info.magnolia.module.admininterface.DialogMVCHandler.onSave(DialogMVCHandler.java:286)
at info.magnolia.module.admininterface.DialogMVCHandler.save(DialogMVCHandler.java:183)
at sun.reflect.GeneratedMethodAccessor675.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...



 Comments   
Comment by Magnolia International [ 20/Jan/09 ]

This looks close to a unit test. Jan, can you extract it and see if it still fails with the new link api ?

Comment by Jan Haderka [ 23/Jan/09 ]

Found the little bugger ... Added test as well. Done as of r21663.

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