Donate Share

Mime Type Detection Utility

Tracker: Bugs

5 Steam not closed in OpendesktopMimeDetector._getMimeTypes() - ID: 2862117
Last Update: Comment added ( smcardle )

The problem is that the stream closing is within if(mimeTypes.isEmpty() ||
mimeTypes.size() > 1) {} block, thus the stream is not closed if there is
exactly one element in mimeTypes.

The stream should not even be opened if it is not deeded, or at least the
if statement should be moved within the try block, then the stream closing
in the finally block is always executed.


Nobody/Anonymous ( nobody ) - 2009-09-19 10:16

5

Closed

Fixed

Steven McArdle

Code

None

Public


Comment ( 1 )

Date: 2009-11-29 08:47
Sender: smcardleProject Admin

Stream now closed properly even if only one match exists in mimeTypes


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
close_date - 2009-11-29 08:47 smcardle
allow_comments 1 2009-11-29 08:47 smcardle
assigned_to nobody 2009-11-29 08:47 smcardle
category_id None 2009-11-29 08:47 smcardle
resolution_id None 2009-11-29 08:47 smcardle
status_id Open 2009-11-29 08:47 smcardle