Skip to content

Conversation

@mmoqui
Copy link

@mmoqui mmoqui commented Jun 21, 2017

Fix the node set command: the Node#setProperty method already takes in charge the update or the creation of a node property. By using the Groovy syntaxic sugar node[propertyName], it is not the property of a JCR node that is set but the property of the Java object of Node (NodeImpl more exactly). So the bug is fixed by removing this code and by using simply the Node#setProperty method to perform the command.
Take into account of the case of a multivalued property.

…n charge

the update or the creation of a node property. By using the Groovy syntaxic
sugar node[propertyName], it is not the property of a JCR node that is set but
the property of the Java object of Node (NodeImpl more exactly). So the bug is
fixed by removing this code and by using simply the Node#setProperty method to
perform the command.

Take into account also the exisint node property can be a multivalued one when
updating it with a single value.
@mmoqui
Copy link
Author

mmoqui commented Oct 15, 2020

Hum ... closed but not merged. Any explanation please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants