[MGNLRES-77] Update task fails on NPE Created: 31/Oct/13 Updated: 29/Mar/22 Resolved: 04/Nov/13 |
|
| Status: | Closed |
| Project: | Magnolia Resources Module |
| Component/s: | None |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.1.2, 2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jaroslav Simak | Assignee: | Jozef Chocholacek |
| 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: | |||||||||
| Sprint: | 5.1.2 | ||||||||
| Team: | |||||||||
| Description |
117 register(DeltaBuilder.update("2.0.2", "")
118 .addTask(new CheckAndModifyPropertyValueTask("Config", "Commands configuration", RepositoryConstants.CONFIG, "/modules/resources/commands/resources/versionResources/extractComment", "class",
119 Arrays.asList("info.magnolia.module.resources.commands.ExtractCommentCommand", "info.magnolia.module.admininterface.commands.ExtractCommentCommand"),
120 "info.magnolia.commands.impl.ExtractCommentCommand"))
121 );
122 }
If node "/modules/resources/commands/resources/versionResources/extractComment" doesn't exist, task will fail on NPE. |
| Comments |
| Comment by Christopher Zimmermann [ 31/Oct/13 ] |
|
Tom wespi on forums reported that his upgrade failed from 5.1 to 5.1.1 |
| Comment by Jozef Chocholacek [ 04/Nov/13 ] |
|
It's been fixed by https://git.magnolia-cms.com/gitweb/?p=modules/resources.git;a=commitdiff;h=81743890fb6b7b43cd9a9a1c11a4f711af0f9b3b for the 2.2 version, thus my fix is just in the 2.1.x branch. |