https://opendal.apache.org/ logo
S3 object versioning
# general
c
Hi All, I'm working with S3 versioned objects and having trouble accessing specific versions using OpenDAL. I have an S3 bucket with versioning enabled and need to read/download specific versions of objects, but it seems like OpenDAL is always returning the latest version regardless of how I try to specify the version ID. Is this feature supported yet?
x
Would you like to show how you use opendal?
This feature is covered by our behavior test which should be good
c
Okay so I can successfully retrieve all versions using the Browse API by enabling the versions=true flag. However, when I try to access a specific version through the file/access endpoint — for example: http://localhost:8000/file/access?estate_url=estate:///path/to/file&version_id= The response always returns the latest file content, regardless of the version_id provided. Am I doing something wrong in the url construction?
btw I'm using python bindings^^
x
Hi, I don't know what's this uri is requesting for. Is it a service that building upon opendal python?
c
Hi, yes, this is a FastAPI service built on top of OpenDAL Python for file storage operations. We're trying to implement S3 versioning functionality where users can access specific versions of files stored in S3/MinIO. Our current issue: - We have S3 versioning enabled on our MinIO bucket - When we try to read a specific version using:
op_instance.read(file_path, version=version_id)
- It always returns the latest version instead of the requested version
x
I check the logic and it seems correct to me. Is it possible for you to have a full repro?
I can setup a minio services to try to reproduce
Oh, I get it. Please add a new config:
enable_versioning: true
for it
this config is confusing, we gonna to remove in coming versions