[MGNLUI-4193] Conflict between jcrName and setNodeName() Created: 18/Apr/17 Updated: 08/Mar/21 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 5.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jan Haderka | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
When setting names of the newly created nodes programatically there is a conflict if jcrName is also configured (e.g. you want to show your editors real name of the node, but in read only mode so that they can't change it and it is set according to predefined rules). To reproduce (in contacts app): Expected behavior: In RO mode on the other hand (i.e. when field has set readOnly==true) it's value should be only displayed and not considered when saving the dialog at all (i.e. autogenerated node name mechanism wins). Also when saving fails, it fails with very counterproductive error:
info.magnolia.ui.api.action.ActionExecutionException: javax.jcr.PathNotFoundException: firstName
at info.magnolia.ui.form.action.SaveFormAction.execute(SaveFormAction.java:92)
at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:62)
....
|
| Comments |
| Comment by Mikaël Geljić [ 19/Apr/17 ] |
Ignoring "jcrName" property in the aforementioned adapter method is not an option, as this would break rename dialogs. |