Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6455

nodeNameValidator doesn't work correctly in "createPage" case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2.10
    • 6.2.5
    • None
    • None

    Description

      Steps to reproduce

      1. Create page in the root with name "pageA"
      2. Create page in the root with name "pageB"
      3. Create page in the root with name "pageA"
        • page with name "pageA0" is created
      4. Create page inside pageB with name "pageA"
        • error  "pageA" already exists

      Actual result
      Name is checked for duplicates in parent of parent.

      Expected result
      Name is checked for duplicates in parent.

      Note for Developers
      This probably happens because on this line context object contains parent node for "createPage" use-case and the edited page in "renamePage" use-case.
      Probably some parameter is required to define whether parent should be examined for duplicates.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                rgange Richard Gange
                Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 20m
                      20m