commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otto Fowler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-614) MonitorInputStream should not close the stream in "read"
Date Fri, 16 Feb 2018 16:19:00 GMT

    [ https://issues.apache.org/jira/browse/VFS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367536#comment-16367536
] 

Otto Fowler commented on VFS-614:
---------------------------------

 

in your test, you are reading from an empty file.  Both the stream detect and EOF read, but
the difference is, as you have guessed the wrapped VFS stream closes on EOF.

 

If you change your test such that the file does have something in it, and you are NOT reading
to EOF then it will work.

I don't think VFS should close the stream through, it should act as the BufferedOutputStream
that is it's base does

 

> MonitorInputStream should not close the stream in "read"
> --------------------------------------------------------
>
>                 Key: VFS-614
>                 URL: https://issues.apache.org/jira/browse/VFS-614
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Boris Petrov
>            Priority: Critical
>
> Check the following thread for more description:
> https://mail-archives.apache.org/mod_mbox/commons-user/201606.mbox/%3C90211dd5-5954-e786-e493-30187e68007b%40profuzdigital.com%3E
> And the following repo with a "demo" of the bug:
> https://github.com/boris-petrov/vfs-bug



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message