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 2C5059DD7 for ; Fri, 7 Oct 2011 11:30:52 +0000 (UTC) Received: (qmail 50046 invoked by uid 500); 7 Oct 2011 11:30:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 49987 invoked by uid 500); 7 Oct 2011 11:30:51 -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 49915 invoked by uid 99); 7 Oct 2011 11:30:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 11:30:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Fri, 07 Oct 2011 11:30:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E18532AD022 for ; Fri, 7 Oct 2011 11:30:29 +0000 (UTC) Date: Fri, 7 Oct 2011 11:30:29 +0000 (UTC) From: "Timothee Maret (Issue Comment Edited) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <2039704018.7421.1317987029925.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1569361603.11566.1317819034191.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (JCR-3093) Inconsistency between Session.getProperty and Node.getProperty for binary values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122694#comment-13122694 ] Timothee Maret edited comment on JCR-3093 at 10/7/11 11:30 AM: --------------------------------------------------------------- The patch JCR-3093.patch implements the solution described by angela. It spools a binary property only if explicitely requested (even with Session.getProperty) was (Author: marett): This patch implements the solution described by angela. It spools a binary property only if explicitely requested (even with Session.getProperty) > Inconsistency between Session.getProperty and Node.getProperty for binary values > -------------------------------------------------------------------------------- > > Key: JCR-3093 > URL: https://issues.apache.org/jira/browse/JCR-3093 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-spi2dav > Reporter: angela > Attachments: JCR-3093.patch > > > there an inconsistency in the binary handling between the batch-reading facility and those cases where a property is directly > accessed without having accessed the parent node before. > this issue came up with timothee maret running into performance issues when retrieving the length of a binary property: > if the property-entry has been created in the run of a batch-read operation the corresponding property-data object > contains internal values that contain the length of the binary (such as transported with the json response) and only > read the data from the server if the value stream is explicitly requested. > however, if the property is accessed directly (e.g. Session.getProperty or Node.getProperty with a relative path) > a GET request is made to the corresponding dav resource and the stream is read immediately. > possible solution: > if RepositoryService#getItemInfos(SessionInfo, ItemId) is called with a PropertyId the implementation > should not result in a GET request to the corresponding resource by calling super.getPropertyInfo(sessionInfo, (PropertyId) itemId). > instead it should be consistent with the batch-read and only make a PROPFIND request for the property > length. the returned PropertyInfo object would in that case be identical to the one generated by the batch-read functionality. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira