From e71206241ff49c9f600f6a6406107a599bf1fd50 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 1 Dec 2024 23:44:00 -0800 Subject: [PATCH] Explicitly set BlobAccess during putBlob This matches completeMultipartUpload. --- .../java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java b/src/main/java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java index 8149427..1afc196 100644 --- a/src/main/java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java +++ b/src/main/java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java @@ -594,6 +594,8 @@ public abstract class AbstractNio2BlobStore extends BaseBlobStore { Files.move(tmpPath, path, StandardCopyOption.ATOMIC_MOVE, StandardCopyOption.REPLACE_EXISTING); + setBlobAccess(container, blob.getMetadata().getName(), options.getBlobAccess()); + return "\"" + actualHashCode + "\""; } catch (IOException ioe) { throw new RuntimeException(ioe);