-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.8
-
None
-
None
Steps to reproduce
- Â Create a parent page
- Â Create a child page called child
- Â Create a child page called another-child
- Â Select the page another-child and try to create a page called child
Expected results
The page is created
Actual results
The page is not created because the NodeValidator returns an error indicating the page already exists (tho it doesn't)
Workaround
N/A
Development notes
At info.magnolia.ui.editor.validator.NodeNameFieldValidatorFactory.createValidator() method, the isFailure method is checking if the page you want to create already exists on the parent path instead of checking within the same level.
Please check the attachments. item-value.png shows the path within the new node is going to be created (/parent/another-child). The new node is going to be called child.
As you can check in the pages structure, there is a child node called child and another child called another-child, so the path parent/another-child/child should be available.
Anyways, the validator checks if a path like /parent/child exists, tho this is not the path that is going to be created (check path-value.png image).
The validator fails tho the page path is available (check error.png image).
- depends upon
-
MGNLUI-6455 nodeNameValidator doesn't work correctly in "createPage" case
- Closed
- relates to
-
MGNLUI-6735 NodeNameValidator doesn't work at root level
- Closed
- supersedes
-
MGNLUI-6678 Creating a page with an identical name does not create any page nor provides validation
- Closed