You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating and maintaining versitygw.
It is very nice and useful!
To Reproduce
Upload a file.
Go to the root directory of the posix backend.
Observe that in directory $bucket/multipart/object/upload-id, all parts (1, 2, ...) are left.
I identified the root cause and will contribute a fix.
In CompleteMultipartUpload, the path argument to os.RemoveAll() does not start with the bucket name. Since the path does not exist, os.RemoveAll() does nothing and uploaded parts are left in the ".sgwtmp" directory.
The issue exists in CompleteMultipartUpload but does not exist in AbortMultipartUpload.
Expected behavior
No parts should be left when CompleteMultipartUpload completes.
Server Version
$ ./versitygw --version
Version : 1.0.1
Build : d98ca9b0346d8f097ab42d8832895a248756259a
BuildTime: 2024-06-11T21:29:09Z
$ uname -a
Linux xxx 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
Additional context
Reproduced with AWS CLI and Cyberduck
aws-cli 2.15.42
Cyberduck 8.9.0
The text was updated successfully, but these errors were encountered:
…load
In the posix backend, the path argument to os.RemoveAll() does not
start with the bucket name. Since the path does not exist,
os.RemoveAll() does nothing and uploaded parts are left in the
".sgwtmp" directory.
This commit prefixes the path with the bucket name.
Fixes issue versity#626.
Signed-off-by: Christophe Vu-Brugier <[email protected]>
Describe the bug
Hi,
Thank you for creating and maintaining versitygw.
It is very nice and useful!
To Reproduce
$bucket/multipart/object/upload-id
, all parts (1, 2, ...) are left.I identified the root cause and will contribute a fix.
In CompleteMultipartUpload, the path argument to os.RemoveAll() does not start with the bucket name. Since the path does not exist, os.RemoveAll() does nothing and uploaded parts are left in the ".sgwtmp" directory.
The issue exists in CompleteMultipartUpload but does not exist in AbortMultipartUpload.
Expected behavior
No parts should be left when CompleteMultipartUpload completes.
Server Version
Additional context
Reproduced with AWS CLI and Cyberduck
The text was updated successfully, but these errors were encountered: