[MGNLPUR-124] Upgrade to 5.2.2 fails due to exception during install of PUR module Created: 07/Feb/14 Updated: 11/Nov/16 Resolved: 07/Feb/14 |
|
| Status: | Closed |
| Project: | Magnolia Public User Registration |
| Component/s: | management |
| Affects Version/s: | 2.2.2 |
| Fix Version/s: | 2.2.3 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Richard Unger | Assignee: | Roman Kovařík |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | maintenance, pur, support, upgrade | ||
| 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 |
|
Installer fails on update from 5.2.1 to 5.2.2: Magnolia Public User Registration Module (version 2.2.2) The exception is: 2014-02-07 12:27:57,171 ERROR info.magnolia.module.InstallContextImpl : > Could not perform installation: javax.jcr.PathNotFoundException: /modules/public-user-registration/trees |
| Comments |
| Comment by Tom Wespi [ 07/Feb/14 ] |
|
I tried to update an Magnolia 5.2.1 instance without PUR installed. The installation of the PUR Module during the update to 5.2.2 failed due some PathNotFoundException. Unfortunately I do not have the StackeTrace anymore, but should be easy to reproduce. |
| Comment by Christian Ringele [ 07/Feb/14 ] |
|
I just checked on our demo which is currently running on M5.2.1 and PUR 2.2.1 the configuration. But our demo is a fresh deployment of 5.2.1. Looking at the "PublicUserRegistrationVersionHandler" its quite obvious what the problem is: register(DeltaBuilder.update("2.2.1", "") .addTask(new RemoveNodeTask("Remove deprecate tree", "Removes deprecated 'usersPublic' tree", RepositoryConstants.CONFIG, "/modules/public-user-registration/trees/usersPublic")) .addTask(changeNodeTypeOfPublicUserBaseNode)); register(DeltaBuilder.update("2.2.2", "") .addTask(new ChildrenExistsDelegateTask("Remove empty tree node", "Remove 'modules/public-user-registration/trees' if it's empty", RepositoryConstants.CONFIG, "/modules/public-user-registration/trees", NodeTypes.ContentNode.NAME, null, new RemoveNodeTask("Remove tree node", "Remove 'modules/public-user-registration/trees'.", RepositoryConstants.CONFIG, "/modules/public-user-registration/trees/")))); Delta 2.2.1 removes the node, delta 2.2.2 tries to remove the node again, respectively check first its children. 2014-02-07 12:27:57,171 ERROR info.magnolia.module.InstallContextImpl : > Could not perform installation: javax.jcr.PathNotFoundException: /modules/public-user-registration/trees java.lang.RuntimeException: javax.jcr.PathNotFoundException: /modules/public-user-registration/trees at info.magnolia.module.delta.ChildrenExistsDelegateTask.condition(ChildrenExistsDelegateTask.java:75) Assuming here that the PUR module was not first deployed on PUR version 2.2.1. Summarized: |
| Comment by Christian Ringele [ 07/Feb/14 ] |
|
Workaround: 1. If you update form Magnolia 5.2.1 to 5.2.2 (PUR module version 2.2.1 to 2.2.2):
2. If you update from Magnolia 5.2 (or lower) to 5.2.2:
|
| Comment by Matteo Pelucco [ 07/Feb/14 ] |
|
An additional note. |
| Comment by Christian Ringele [ 07/Feb/14 ] |
|
Thanks Matteo for the tip! PUR module V 2.2.3 is released which will update correctly. |