Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading from version 3.0.2 to 3.2.0 fileObject.exists() check always returns fileObject.getType() as imaginary #9

Open
RDAS19 opened this issue Nov 29, 2021 · 0 comments

Comments

@RDAS19
Copy link

RDAS19 commented Nov 29, 2021

Hi,

We recently upgraded our vfs-s3 library from version 3.0.2 to 3.2.0. After upgrading we have noticed that our check to see if fileObject exists by using `fileObject.exists()' always returns false. This is because fileType is always returned as imaginary. The same call was working fine before the upgrade.

Trying to debug further, it seems with the new implementation of doAttach() method within S3FileObject class, we are invoking aws api to listobjects. Within this object we are checking if there are any common prefixes. listObject is returning an empty list of common prefixes and thus we set objectType to be ObjectType.OBJECT. As a result getType call on this fileObject is returning fileType as imaginary. This is breaking our folder validation call.

Could you please have a look at this issue as this is breaking our implementation to validate files/folders on S3 bucket.

Thanks,
Rajeev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant