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

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Obsolete
    • Affects Version/s: 5.4.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: