Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 69122 invoked from network); 17 Oct 2006 18:37:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2006 18:37:30 -0000 Received: (qmail 19138 invoked by uid 500); 17 Oct 2006 18:37:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 19070 invoked by uid 500); 17 Oct 2006 18:37:28 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 19059 invoked by uid 99); 17 Oct 2006 18:37:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 11:37:28 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 11:37:27 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16A2A7141E3 for ; Tue, 17 Oct 2006 11:36:36 -0700 (PDT) Message-ID: <10112238.1161110196090.JavaMail.jira@brutus> Date: Tue, 17 Oct 2006 11:36:36 -0700 (PDT) From: "Alexander Klimetschek (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-1935) [Patch] NPE in ResourceReader when InputSource returns null on getURI In-Reply-To: <15954180.1161110076959.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1935?page=all ] Alexander Klimetschek updated COCOON-1935: ------------------------------------------ Attachment: cocoon-core-resourcereader-getURI-NPE.patch To be applied in cocoon root. Affects cocoon-core. > [Patch] NPE in ResourceReader when InputSource returns null on getURI > --------------------------------------------------------------------- > > Key: COCOON-1935 > URL: http://issues.apache.org/jira/browse/COCOON-1935 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core, - Blocks Framework > Affects Versions: 2.2-dev (Current SVN) > Reporter: Alexander Klimetschek > Priority: Critical > Attachments: cocoon-core-resourcereader-getURI-NPE.patch > > > The ResourceReader crashes on a NPE when the InputSource returns a null String in getURI() while checking the cache and the lastmodified value. > The problem was very invisible because the exception was completely hidden due to reflection when calling the ResourceReader from the pipeline. > Problem was triggered by the BlockSource, which falsely returns a null systemId in getURI(). To solve the problem there are two ways, both included as patches: fix the ResourceReader and fix the BlockSource. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira