abashev / vfs-s3

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

S3FileObject upload throws NPE when validating md5 #83

Closed tatiananovik closed 1 year ago

tatiananovik commented 1 year ago

When uploading file to S3, getETag() returns null, so md5 is also null. This happens here.

NullPointerException is thrown during MD5 verification check:

java.lang.NullPointerException
    at com.github.vfss3.S3FileObject.upload(S3FileObject.java:911)
    at com.github.vfss3.S3FileObject.doCopyFrom(S3FileObject.java:818)
    at com.github.vfss3.S3FileObject.copyFrom(S3FileObject.java:722)
cy6erskunk commented 1 year ago

Hello, do you have any plans to release the fix for the issue? It would be appreciated a lot as it will allow us to upgrade to a version where https://github.com/abashev/vfs-s3/issues/70 is fixed. Thank you!