[MGNLDAM-482] SaveAssetFormAction setNodeName method doesn't work under specific circumstances Created: 14/Jul/14  Updated: 22/Jul/14  Resolved: 15/Jul/14

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2

Type: Bug Priority: Major
Reporter: Bence Vass Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

In the setNodeName method it is assumed, that the jcr:content node is always the first subnode.
Node imageNode = (Node) node.getNodes().next();

Instead, the node should be selected by name, in case that there are other subnodes present.


Generated at Mon Feb 12 05:00:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.