Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8536

Entering invalid characters in jcrName throws exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.3.0, 6.2.24
    • 6.2.19
    • None

      Entering special JCR internal characters in jcrName fields throws exception. This bug affects all apps and all node types. It can happen in every dialog/app where a jcrName field is included.

      Steps to reproduce

      1. open pages app
      2. create a new page
      3. enter name beginning with "{}" or name containing "|" (pipe)
      4. leave the field or click next

      Result

      • Exceptions are thrown (2 different ones for {} and |)

      This is just one way. All the same with assets, on folders, creating items, renaming items,...

      Expected behaviour

      • value of jcrName field is checked for invalid inputs
      • should not throw an exception
      • display a validation error
      • display a hint which characters are allowed

       

      I propose to disallow any [] {} | : in JCR names because the can have a special meaning in some cases.

      Dev note

      having UTF8 support enabled is necessary to reproduce the issue

        Acceptance criteria

              asiska Adam Siska
              mjeni Markus Jeni
              Nucleus
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1d 2.5h
                    1d 2.5h