Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Reproducible steps:
- Create a document in CMS UI
- Edit a RichText field
- Add an external link on a text
- Select "Other" in link type and enter something starting with '/' like '/a/b/c' in the link.
- Then, when saving, it throws an exception even if it is saved.
- If you try to open the document, then it doesn't open and it throws an exception like the following:
[INFO] [talledLocalContainer] Caused by: java.lang.IllegalArgumentException: relPath is not a relative path: {} {}a {}b {}c
[INFO] [talledLocalContainer] at org.apache.jackrabbit.spi.commons.name.PathFactoryImpl.create(PathFactoryImpl.java:47)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.getNodeId(NodeImpl.java:270)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:223)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2277)
[INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:299)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.view.PreviewLinksBehavior.linkExists(PreviewLinksBehavior.java:127)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.view.PreviewLinksBehavior.internalLink(PreviewLinksBehavior.java:106)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.RichTextProcessor.decorateTagAttributes(RichTextProcessor.java:246)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.RichTextProcessor.decorateLinkAttributes(RichTextProcessor.java:207)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.RichTextProcessor.decorateLinkHrefs(RichTextProcessor.java:203)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.model.BrowsableModel.getObject(BrowsableModel.java:40)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.richtext.model.BrowsableModel.getObject(BrowsableModel.java:25)
[INFO] [talledLocalContainer] at org.apache.wicket.Component.getDefaultModelObject(Component.java:1627)
[INFO] [talledLocalContainer] ... 209 more
Attachments
Issue Links
- relates to
-
CMS-8314 RichText LinksBehavior - IllegalArgumentException: relPath is not a relative path
- Closed
-
CMS-8362 Rich text processor should handle links with custom schemes and absolute links as external links
- Closed
-
HSTTWO-3093 Support pluggable schemes, absolute links and anchors
- Closed
-
HSTTWO-3094 [Backport 7.9] Support pluggable schemes, absolute links and anchors
- Closed