Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5758

Incorrect regexp in FilterNameHelper

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.5.16, 4.6.0
    • None
    • None
    • None
    • 4.6 RC4

      Unable to create a jcr node or a page with title "2013-2014" using FilterNameHelper.

      The name does not match the regexp ^([0-9-_]*)[a-z].*$

          [CMS-5758] Incorrect regexp in FilterNameHelper

          I reopen the issue because the FilterNameHelper deals with "page" pattern, whereas it is in CMS.

          Moreover there is a FIXME into this class : // FIXME Page name can not start with a number

          This helper is use to create page, content, survey, project's categories. We need to study these use case and see if this helper is convenient for each case

          Laurence Aumeunier added a comment - I reopen the issue because the FilterNameHelper deals with "page" pattern, whereas it is in CMS. Moreover there is a FIXME into this class : // FIXME Page name can not start with a number This helper is use to create page, content, survey, project's categories. We need to study these use case and see if this helper is convenient for each case

          I do not get your point.
          This is a "choice" not a bug.

          The name cannot be "2013-2014" but the title can.

          Raphaël Franchet added a comment - I do not get your point. This is a "choice" not a bug. The name cannot be "2013-2014" but the title can.

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

              Created:
              Updated:
              Resolved: