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

Can't set type for empty multi valued property

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mduerig Michael Dürig

            Dates

              Created:
              Updated:

              Issue deployment