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

Entering invalid characters in jcrName throws exception

    XMLWordPrintable

Details

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

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

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