12 Replies Latest reply on Jul 19, 2012 3:35 AM by Dmitri Voronov

    Issue on updating node properties of type "multiple reference"

    Dmitri Voronov Novice

      Hi all,

       

      we are facing a problem on updating a node ptoperty of type multiple reference. Instead of new array of references the property value remains the same.

      On debuging we saw in the methode org.modeshape.jcr.SessionCache.NodeEditor.setProperty(Name, Value[], int, boolean, boolean):

       

                     ...

                     assert jcrProp != null; 

                     JcrPropertyPayload propPayload = new JcrPropertyPayload(definition.getId(), propertyType, jcrProp);                                node.setProperty(dnaProp, definition.isMultiple(), propPayload);                

                     return jcrProp;

       

      dnaProp is updated value and jcrProp the old one. But any way the old wins on this update.

       

      Is it a bug? are there any fixes for that.

       

      Thanks a lot