jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Created] (JCR-2992) Can't set type for empty multi valued property f
Date Wed, 15 Jun 2011 15:45:47 GMT
Can't set type for empty multi valued property f
------------------------------------------------

                 Key: JCR-2992
                 URL: https://issues.apache.org/jira/browse/JCR-2992
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr2spi, jackrabbit-spi, jackrabbit-spi2dav, jackrabbit-spi2jcr
    Affects Versions: 2.2.7
            Reporter: Michael Dürig


Setting an empty multi valued property of a certain type is not possible through SPI. The
type is not available on the SPI layer:

parentNode.setProperty("myProp", new Value[0], PropertyType.BOOLEAN);

causes a call to 

Batch.setValue(PropertyId propertyId, QValue[] values) 

in the SPI. Since values is an empty array, there is no means for retrieving the original
type. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message