[PAGES-447] Can't add child page with the same name as another parent's sibling Created: 12/Apr/21 Updated: 14/Jun/21 Resolved: 11/Jun/21 |
|
| Status: | Closed |
| Project: | Magnolia pages module |
| Component/s: | None |
| Affects Version/s: | 6.2.8 |
| Fix Version/s: | 6.2.9 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Carlos Cantalapiedra | Assignee: | Martin Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
[X]*
Verify if MGNLUI-6455, PAGES-418, MGNLUI-6678 are fixed as well
|
||||||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||
| Epic Link: | UI framework implementation | ||||||||||||||||||||||||||||
| Sprint: | UI FW 30 | ||||||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||||||
| Description |
Steps to reproduce
Expected resultsThe page is created Actual resultsThe page is not created because the NodeValidator returns an error indicating the page already exists (tho it doesn't) WorkaroundN/A Development notesAt 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 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 The validator fails tho the page path is available (check error.png |