-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.2.8
-
None
-
Magnolia Demo Author
Steps to reproduce
On Mangolia Demo Author
- create a page named 'pagename' below e.g. 'travel'
- try to create another page named 'pagename' below the same node (i.e. 'travel')
- observe, that after clicking 'next' in the add page dialog, the page properties dialog is not shown
Expected results
- Validation error is shown that a page with the same name already exists
Actual results
- No page is created and no page properties dialog is displayed
Development notes
- The cause of the problem is possibly here: https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/validator/NodeNameFieldValidatorFactory.java#89
- the passed 'item' is the parent of the page that will be created
- the constructed path for the validation uses item.getParent() and hence checks on the parent of the parent, instead of the parent of the new page itself
Acceptance criteria
- is superseded by
-
PAGES-447 Can't add child page with the same name as another parent's sibling
- Closed
- supersedes
-
MGNLUI-6735 NodeNameValidator doesn't work at root level
- Closed