-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rename/copy doesn't preserve versions #13
Comments
as far as I could understand in https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html the copy would just be like another version, which implies that copying the object itself doesn't preserve versions this means we'll need to copy all versions individually. it seems that the AWS PHP SDK doesn't have a batch method for copying multiple objects, only |
I've tested with CopyObject and while the versions are copied over:
Draft PR here: nextcloud/server#29179 |
For LastModified, we might be able to introduce a custom extra metadata attribute that we set on copy. |
by design for now versions will be preserved in the original location by S3 itself: nextcloud/server#29220 |
Steps
docker run -p 9000:9000 minio/minio server /data{1...12}
nextcloud-dev
in the Minio consoleocc app:enable files_external
occ app:enable files_versions_s3
Expected result
Versions are preserved like for other storages.
Actual result
Versions not preserved.
Versions
Nextcloud 23 git master 4a1a9d6821fa61885080793ab34cdb9f4d2d0057
Notes
Unrelated to #11 but they both use the copy routine.
It's the copy that should somehow copy the versions as well if possible.
I hope the S3 API allows for that, otherwise we'll need to recurse there.
The text was updated successfully, but these errors were encountered: