[MGNLUI-2509] JcrNewNodeAdapter should be reusable after first call to applyChanges() Created: 09/Dec/13 Updated: 13/Aug/19 Resolved: 13/Aug/19 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 5.2 |
| Fix Version/s: | 5.2.x |
| Type: | Bug | Priority: | Major |
| Reporter: | Federico Grilli | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | integration, maintenance, vaadin | ||
| 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
|
||||||||||||||||
| Description |
|
Suppose you're creating a new node and doing some additional validation in an action, besides that done by the validator proper. // If changes were already applied, behave like a JcrNodeAdapter if (appliedChanges) { Node node = super.applyChanges(); if (node != null) { isNew = false; return node; } // else validation errors probably occurred, so we need to recreate the new node on the fly } |