[MAGNOLIA-5789] Restoring deleted nodes does not update mgnl:lastModified Created: 27/May/14 Updated: 04/Jun/14 Resolved: 04/Jun/14 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 5.2.6, 5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mikaël Geljić | Assignee: | Daniel Lipp |
| Resolution: | Fixed | Votes: | 0 |
| 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 restoring a deleted page, old mgnl:lastModified date is also restored and consequently activation status is back to green. Expected: mgnl:lastModified date should be updated to 'now', and status icon should be yellow. This is filed in main because it was identified as a side-effect of |
| Comments |
| Comment by Daniel Lipp [ 28/May/14 ] |
|
At runtime we have the following hierarchy of wrappers: MgnlAuditLoggingContentDecoratorNodeWrapper
This can be easily reproduced by e.g. running BaseVersionManagerTest#testCreateAndRestoreVersion |
| Comment by Daniel Lipp [ 02/Jun/14 ] |
|
There seems to be something fishy - reopening until that's clarified |
| Comment by Jan Haderka [ 04/Jun/14 ] |
|
I would maybe just add a note in BVM that this is necessary because restore is done via clone op that preserves mod date otherwise. |