[ https://issues.apache.org/jira/browse/SLING-3778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Munteanu resolved SLING-3778. ------------------------------------ Resolution: Fixed > [tooling] multi valued properties are not correctly exported to the server > -------------------------------------------------------------------------- > > Key: SLING-3778 > URL: https://issues.apache.org/jira/browse/SLING-3778 > Project: Sling > Issue Type: Bug > Components: IDE > Reporter: Stefan Egli > Assignee: Robert Munteanu > Fix For: Sling Eclipse IDE 1.0.2 > > > Consider the following .content.xml: > {code} > <?xml version="1.0" encoding="UTF-8"?> > <jcr:root > xmlns:sling="http://sling.apache.org/jcr/sling/1.0" > xmlns:jcr="http://www.jcp.org/jcr/1.0" > jcr:primaryType="sling:Folder" > multi="[first]"/> > {code} > This content is not correctly exported to the server - the property ends up > as a non-mvp. > A subsequent change of the properties an array with 2 entries results in : > {code} > [July 21, 2014 9:28:44 PM CEST] AddOrUpdateNodeCommand -> > /apps/beispielapp/foo : JcrResult[ success:false, exception: > org.apache.sling.ide.transport.RepositoryException - > javax.jcr.ValueFormatException: /apps/beispielapp/foo/multiMultivalue > definition of /apps/beispielapp/foo/multi does not match to given value(s).] > (92 ms) > org.apache.sling.ide.transport.RepositoryException: > javax.jcr.ValueFormatException: /apps/beispielapp/foo/multiMultivalue > definition of /apps/beispielapp/foo/multi does not match to given value(s). > at org.apache.sling.ide.impl.vlt.JcrResult.failure(JcrResult.java:33) > at org.apache.sling.ide.impl.vlt.JcrCommand.execute(JcrCommand.java:65) > at > org.apache.sling.ide.transport.TracingCommand.execute(TracingCommand.java:43) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.execute(SlingLaunchpadBehaviour.java:455) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishContentModule(SlingLaunchpadBehaviour.java:415) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:231) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) > at > org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) > at > org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:54) > at > org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3154) > at > org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) > Caused by: javax.jcr.ValueFormatException: > /apps/beispielapp/foo/multiMultivalue definition of > /apps/beispielapp/foo/multi does not match to given value(s). > at > org.apache.jackrabbit.jcr2spi.PropertyImpl.checkIsWritable(PropertyImpl.java:511) > at > org.apache.jackrabbit.jcr2spi.PropertyImpl.setValue(PropertyImpl.java:117) > at org.apache.jackrabbit.jcr2spi.NodeImpl.setProperty(NodeImpl.java:283) > at org.apache.jackrabbit.jcr2spi.NodeImpl.setProperty(NodeImpl.java:269) > at > org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.updateNode(AddOrUpdateNodeCommand.java:304) > at > org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.update(AddOrUpdateNodeCommand.java:99) > at > org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:80) > at > org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:1) > at org.apache.sling.ide.impl.vlt.JcrCommand.execute(JcrCommand.java:57) > ... 12 more > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)