Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8314

RichText LinksBehavior - IllegalArgumentException: relPath is not a relative path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Top
    • Resolution: Fixed
    • Affects Version/s: 2.26.07
    • Fix Version/s: 2.26.09
    • Component/s: None
    • Labels:
    • Similar issues:

      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

            Activity

              People

              • Assignee:
                jsheriff Junaidh Kadhar Sheriff
                Reporter:
                wko Woonsan Ko
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: