Uploaded image for project: 'Links directory'
  1. Links directory
  2. LINKS-37

Namespace error when trying to create a link

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.1.0
    • None
    • None
    • Ametys Demo 3.7.0RC1

      • Try to create a link with an url starting with http:// or https://

      http: is not a registered namespace prefix.

      javax.jcr.NamespaceException: http: is not a registered namespace prefix.
          at org.apache.jackrabbit.core.NamespaceRegistryImpl.getURI(NamespaceRegistryImpl.java:478)
          at org.apache.jackrabbit.core.session.SessionContext$PermissionAwareNamespaceRegistry.getURI(SessionContext.java:392)
          at org.apache.jackrabbit.commons.AbstractSession.getNamespaceURI(AbstractSession.java:132)
          at org.apache.jackrabbit.core.SessionImpl.getURI(SessionImpl.java:623)
          at org.apache.jackrabbit.spi.commons.conversion.NameParser.parse(NameParser.java:187)
          at org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver.getQName(ParsingNameResolver.java:64)
          at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:283)
          at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:122)
          at org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver.getQPath(ParsingPathResolver.java:90)
          at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:98)
          at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:77)
          at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver.getQPath(DefaultNamePathResolver.java:82)
          at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:648)
          at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:338)
          at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237)
          at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222)
          at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2250)
          at org.ametys.plugins.repository.jcr.TraversableAmetysObjectHelper.hasChild(TraversableAmetysObjectHelper.java:275)
          at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory.hasChild(DefaultTraversableAmetysObjectFactory.java:76)
          at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject.hasChild(DefaultTraversableAmetysObject.java:51)
          at org.ametys.plugins.linkdirectory.link.CreateLinkAction.createLink(CreateLinkAction.java:192)
      

            Unassigned Unassigned
            quentin Quentin Glinel-Mortreuil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: