Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2992

Can't set type for empty multi valued property

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. Test_case_for_JCR-2992.patch
          3 kB
          Michael Dürig

        Activity

          People

            Unassigned Unassigned
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: