You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2011/06/15 17:47:47 UTC
[jira] [Updated] (JCR-2992) Can't set type for empty multi valued
property f
[ https://issues.apache.org/jira/browse/JCR-2992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated JCR-2992:
-------------------------------
Attachment: Test_case_for_JCR-2992.patch
Test case demonstration the issue
> 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
> Attachments: Test_case_for_JCR-2992.patch
>
>
> 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