You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Freek Segers (JIRA)" <ji...@apache.org> on 2006/03/09 13:24:03 UTC

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

TraversableGenerator calls resloveURI() 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
    Priority: Minor
 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


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

Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1796?page=all ]

Antonio Gallardo updated COCOON-1796:
-------------------------------------

    Summary: TraversableGenerator calls resolveURI() twice but release() only once  (was: TraversableGenerator calls resloveURI() twice but release() only once)

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


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

Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1796?page=all ]

Antonio Gallardo updated COCOON-1796:
-------------------------------------

    Fix Version: 2.1.9-dev (current SVN)

> 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


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

Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1796?page=all ]

Antonio Gallardo reassigned COCOON-1796:
----------------------------------------

    Assign To: Antonio Gallardo

> TraversableGenerator calls resloveURI() 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
>  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