[ http://issues.apache.org/jira/browse/COCOON-1935?page=all ]
Daniel Fagerstrom closed COCOON-1935.
-------------------------------------
Resolution: Fixed
Applied (both patches). Thanks for spotting the bug.
> [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-blocksource-fix-getURI-NPE.patch,
> 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