Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1796

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.8, 2.1.9
    • 2.1.9
    • * Cocoon Core
    • None
    • 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.

      Attachments

        Activity

          People

            antonio Antonio Gallardo Rivera
            fsegers Freek Segers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: