From dev-return-32385-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Sep 27 10:16:34 2011 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 E93329E64 for ; Tue, 27 Sep 2011 10:16:33 +0000 (UTC) Received: (qmail 78136 invoked by uid 500); 27 Sep 2011 10:16:33 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 78095 invoked by uid 500); 27 Sep 2011 10:16:33 -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 78040 invoked by uid 99); 27 Sep 2011 10:16:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 10:16:33 +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; Tue, 27 Sep 2011 10:16:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E41EC41B21 for ; Tue, 27 Sep 2011 10:16:11 +0000 (UTC) Date: Tue, 27 Sep 2011 10:16:11 +0000 (UTC) From: "Alex Parvulescu (Updated) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <721072445.2441.1317118571937.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <888328039.13085.1317054326307.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (JCR-3083) Degrade gracefully when reading invalid date 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-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Parvulescu updated JCR-3083: --------------------------------- Attachment: JCR-3083.patch Patch that will allow read operations on bundles that have corrupted 'date' properties. The value will be read as string when trying to read it as a date fails. The type of the value is still 'date', so any clients trying to access the value will still get an error. This helps with repository level operations that need to be able to read bundles without actually using the values. So just having old invalid 'date' properties in the repository will not interfere with operations any more. Dealing with the errors that come from reading those specific dates is still to be handled by the client. > Degrade gracefully when reading invalid date values > --------------------------------------------------- > > Key: JCR-3083 > URL: https://issues.apache.org/jira/browse/JCR-3083 > Project: Jackrabbit Content Repository > Issue Type: Bug > Reporter: Jukka Zitting > Priority: Minor > Attachments: JCR-3083.patch > > > As noted in JCR-1996, it is possible for an old version of Jackrabbit to store date invalid date values in the repository. Currently such values cause exceptions when the repository attempts to read them. A better approach would be to automatically detect such dates and map them instead to string values to avoid losing any information. A client could then access the information as a string through the normal JCR API, and would only get a ValueFormatException when trying to read the value as a date, i.e. using the getDate() method. -- 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