abashev / vfs-s3

Amazon S3 driver for Apache commons-vfs (Virtual File System) project
Apache License 2.0
93 stars 50 forks source link

Fix not being able to open new streams after closing an `S3FileObject` #80

Closed boris-petrov closed 2 years ago

boris-petrov commented 2 years ago

Because in doGetInputStream and doGetOutputStream objectContentHolder is checked against null and only initialized if it is. So on close we set it to null and hopefully that will allow us to open new streams after the file-object has been closed.

cc @abashev

boris-petrov commented 2 years ago

Ping @abashev :)

abashev commented 2 years ago

@boris-petrov sorry, I'm busy right, will check it later

boris-petrov commented 2 years ago

@abashev - it's really a single-line fix, could you please take a look, merge and release this when you can? :)