[MGNLUI-8032] Compatibility layer: Restore version throws null pointer Created: 02/May/23 Updated: 20/Jun/23 Resolved: 12/Jun/23 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | app framework |
| Affects Version/s: | 6.2.33 |
| Fix Version/s: | 6.2.36 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Jaromir Sarf |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Testing, compatibility-module | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 3h | Time Spent: | 3h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
|||||||||||||||||||||||||
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| 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)
|
|||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
|||||||||||||||||||||||||
| Release notes required: |
Yes
|
|||||||||||||||||||||||||
| Date of First Response: | ||||||||||||||||||||||||||
| Epic Link: | Old framework | |||||||||||||||||||||||||
| Sprint: | Nucleus 38 | |||||||||||||||||||||||||
| Story Points: | 2 | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Work Started: | ||||||||||||||||||||||||||
| Approved: |
Yes
|
|||||||||||||||||||||||||
| Description |
|
The Restore version action throws a null pointer. Reproduce
Expected Actual ERROR info.magnolia.ui.contentapp.browser.action.RestoreVersionAction 02.05.2023 13:22:36 -- Restoring of version failed. java.lang.NullPointerException javax.jcr.RepositoryException: java.lang.NullPointerException at info.magnolia.ui.contentapp.browser.action.RestoreVersionAction.createVersionBeforeRestore(RestoreVersionAction.java:197) ~[magnolia-ui-framework-compatibility-6.2.33.jar:?] at info.magnolia.ui.contentapp.browser.action.RestoreVersionAction.restoreVersion(RestoreVersionAction.java:222) ~[magnolia-ui-framework-compatibility-6.2.33.jar:?] at info.magnolia.ui.contentapp.browser.action.RestoreVersionAction.access$800(RestoreVersionAction.java:75) ~[magnolia-ui-framework-compatibility-6.2.33.jar:?] at info.magnolia.ui.contentapp.browser.action.RestoreVersionAction$1.onSuccess(RestoreVersionAction.java:143) [magnolia-ui-framework-compatibility-6.2.33.jar:?] at info.magnolia.ui.dialog.formdialog.FormDialogPresenterImpl$1.onSuccess(FormDialogPresenterImpl.java:146) [magnolia-ui-framework-compatibility-6.2.33.jar:?] ... ... Caused by: java.lang.NullPointerException at info.magnolia.context.RequestAttributeStrategy.setAttribute(RequestAttributeStrategy.java:165) ~[magnolia-core-6.2.33.jar:?] at info.magnolia.context.AbstractContext.setAttribute(AbstractContext.java:114) ~[magnolia-core-6.2.33.jar:?] at info.magnolia.commands.impl.VersionCommand.execute(VersionCommand.java:101) ~[magnolia-core-6.2.33.jar:?] at info.magnolia.ui.contentapp.browser.action.RestoreVersionAction.createVersionBeforeRestore(RestoreVersionAction.java:195) ~[magnolia-ui-framework-compatibility-6.2.33.jar:?] ... 140 more Workaround Notes |
| Comments |
| Comment by Jaromir Sarf [ 26/May/23 ] |
|
Discovery: |
| Comment by Quach Hao Thien [ 26/May/23 ] |
|
Double check with this ticket on implementing: https://jira.magnolia-cms.com/browse/MAGNOLIA-8524 |