Cocoon
  1. Cocoon
  2. COCOON-1796

TraversableGenerator calls resolveURI() twice but release() only once

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.8, 2.1.9
    • Fix Version/s: 2.1.9
    • Component/s: * Cocoon Core
    • Labels:
      None
    • Other Info:
      Patch available

      Description

      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.

        Activity

        Freek Segers created issue -
        Antonio Gallardo made changes -
        Field Original Value New Value
        Assignee Antonio Gallardo [ antonio ]
        Antonio Gallardo made changes -
        Summary TraversableGenerator calls resloveURI() twice but release() only once TraversableGenerator calls resolveURI() twice but release() only once
        Antonio Gallardo made changes -
        Fix Version/s 2.1.9-dev (current SVN) [ 12310650 ]
        Hide
        Antonio Gallardo added a comment -
        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.
        Show
        Antonio Gallardo added a comment - 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.
        Antonio Gallardo made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Antonio Gallardo
            Reporter:
            Freek Segers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development