You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Antonio Gallardo (JIRA)" <ji...@apache.org> on 2006/03/10 06:55:42 UTC

[jira] Closed: (COCOON-1796) TraversableGenerator calls resolveURI() twice but release() only once

     [ http://issues.apache.org/jira/browse/COCOON-1796?page=all ]
     
Antonio Gallardo closed COCOON-1796:
------------------------------------

    Resolution: Fixed

Thanks for the patch!
It was applied in cocoon 2-1-9-dev and 2.2. Please cross check and reopen the bug if you found an issue.

> TraversableGenerator calls resolveURI() twice but release() only once
> ---------------------------------------------------------------------
>
>          Key: COCOON-1796
>          URL: http://issues.apache.org/jira/browse/COCOON-1796
>      Project: Cocoon
>         Type: Bug
>   Components: * Cocoon Core
>     Versions: 2.1.8, 2.1.9-dev (current SVN)
>     Reporter: Freek Segers
>     Assignee: Antonio Gallardo
>     Priority: Minor
>      Fix For: 2.1.9-dev (current SVN)
>  Attachments: Cocoon_TraversableGenerator_patch.txt
>
> The TraversableGenerator first calls resolver.resolveURI() to get a Source and check whether it is a TraversableSource. If this is true, it call resolver.resolveURI() again and assigns the result to a TraversableSource, which is never released.
> The included patch modifies the behaviour so the second call the resolver.resolveURI() is replaced with a cast to TraversableSource on the Source that was retrieved earlier.

-- 
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