Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1A214A64 for ; Wed, 15 Jun 2011 15:48:08 +0000 (UTC) Received: (qmail 48388 invoked by uid 500); 15 Jun 2011 15:48:08 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 48358 invoked by uid 500); 15 Jun 2011 15:48:08 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 48351 invoked by uid 99); 15 Jun 2011 15:48:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 15:48:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 15:48:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 649D5419EA4 for ; Wed, 15 Jun 2011 15:47:47 +0000 (UTC) Date: Wed, 15 Jun 2011 15:47:47 +0000 (UTC) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Message-ID: <1309932964.7111.1308152867408.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1301350595.7103.1308152747398.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (JCR-2992) Can't set type for empty multi valued property f MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2992?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Michael D=C3=BCrig 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-spi2d= av, jackrabbit-spi2jcr > Affects Versions: 2.2.7 > Reporter: Michael D=C3=BCrig > 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=20 > Batch.setValue(PropertyId propertyId, QValue[] values)=20 > in the SPI. Since values is an empty array, there is no means for retriev= ing the original type.=20 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira