Skip to content

Commit 43553de

Browse files
authored
fix: update kms key handling when opening a resumable upload to clear the value in the json to be null rather than empty string (#2939)
Related to b/395940239
1 parent 86e9ae8 commit 43553de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ public String open(StorageObject object, Map<Option, ?> options) {
10821082
try {
10831083
String kmsKeyName = object.getKmsKeyName();
10841084
if (kmsKeyName != null && kmsKeyName.contains("cryptoKeyVersions")) {
1085-
object.setKmsKeyName("");
1085+
object.setKmsKeyName(Data.nullOf(String.class));
10861086
}
10871087
Insert req =
10881088
storage

0 commit comments

Comments
 (0)