Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-60

Page node names that contain ~ (tilde) cannot be rendered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • 5.4.3
    • None
    • None

    Description

      It is currently possible to add a page with node name that contain ~ resulting in a un-renderable page.

      To reproduce

      1. Goto page app
      2. Add new page with page name test~page
      3. Preview page: you should get a 404

      Source

      The ~ (tilde) is a reserved character due to being used as selector delimiter (see info.magnolia.cms.core.Path#SELECTOR_DELIMITER).

      Considered solutions

      • prevent entering the ~ as part of a page name e.g. by validation or
      • always sanitize the path (by replacing tilde with e.g. dash) upon storage.
      • support both selector or node-name when there's no ambiguity (and specify who should win otherwise)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD