Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-513

Missing regexp to check forbidden caracters for renaming a node name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.4, 4.9.0
    • None
    • None
    • None

      Some characters are forbidden for a node name.

      There is no check done when renaming a node. For example try to rename a node with "/" or "*" character.

      Examples with failure:

      • ametys*test
      • ametys/test
      • ametys|test
      • ametys:

      I can also rename a node with number only. Should not be forbidden ?
      I can rename a node with no alphanumeric character such as "-!;". Should not be forbidden ?

      Note that this check is not done either when adding a node

      '/ametys:root/ametys-internal:sites/2e/7d/intranet-search/ametys-internal:plugins/linkdirectory/fr/ametys:directoryLinks/https-examplemail*' is not a valid path. '*' not a valid name character.
      org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: '/ametys:root/ametys-internal:sites/2e/7d/intranet-search/ametys-internal:plugins/linkdirectory/fr/ametys:directoryLinks/https-examplemail*' is not a valid path. '*' not a valid name character.
          at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:409)
          at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:124)
          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:650)
      

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: