[OPENAM-14565] AM Upgrade NPE when unable to read operational attrs from directory Created: 07/Mar/19 Updated: 11/Apr/19 Resolved: 11/Apr/19
|Affects Version/s:||220.127.116.11, 7.0.0|
|Fix Version/s:||6.5.2, 7.0.0|
|Reporter:||Lawrence Yarham||Assignee:||Lawrence Yarham|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Sprint:||AM Sustaining Sprint 60, AM Sustaining Sprint 61, AM Sustaining Sprint 62|
|Needs QA verification:||
|Are the reproduction steps defined?:||
Yes and I used the same an in the description
When performing an AM upgrade (e.g. 6.5.0 to 18.104.22.168 and using DJ 6.5.0 with am-config production profile), the upgrade wizard fails to enable the Upgrade link on the first page. Reviewing the amUpgrade logs reveals a NullPointerException...
ERROR: Unable to read directory schema, the schema won't be upgraded
ERROR: An error occurred while initializing upgrade steps
This is related to
The DirectoryContentUpgrader, line 369 does not have a null guard check in place, causing the NPE. There are other places also within the same class that could benefit. However, need to consider/test what will happen if this initialization does not fail and directory schema upgrade is required.