Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1078

DecompressingEntity not calling close on InputStream retrieved by getContent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2
    • HttpClient (classic)
    • None

    Description

      The method DecompressingEntity.writeTo(OutputStream outstream) does not close the InputStream retrieved by getContent().
      According to the documentation of HttpEntity.writeTo:
      IMPORTANT: Please note all entity implementations must ensure that
      all allocated resources are properly deallocated when this method
      returns.

      -> imho this is not satisfied in DecompressingEntity.writeTo

      Attachments

        Activity

          People

            Unassigned Unassigned
            phax Philip Helger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: