@azure/storage-blob 12.9.0-alpha.20220211.2 → 12.9.0-alpha.20220215.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +7 -5
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -0
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -13495,6 +13495,7 @@ const StorageBlobLoggingAllowedQueryParameters = [
|
|
13495
13495
|
"skv",
|
13496
13496
|
"snapshot",
|
13497
13497
|
];
|
13498
|
+
const BlobUsesCustomerSpecifiedEncryptionMsg = "BlobUsesCustomerSpecifiedEncryption";
|
13498
13499
|
|
13499
13500
|
// Copyright (c) Microsoft Corporation.
|
13500
13501
|
/**
|
@@ -19268,12 +19269,14 @@ class BlobClient extends StorageClient {
|
|
19268
19269
|
}
|
19269
19270
|
catch (e) {
|
19270
19271
|
if (e.statusCode === 404) {
|
19271
|
-
|
19272
|
-
code: coreTracing.SpanStatusCode.ERROR,
|
19273
|
-
message: "Expected exception when checking blob existence",
|
19274
|
-
});
|
19272
|
+
// Expected exception when checking blob existence
|
19275
19273
|
return false;
|
19276
19274
|
}
|
19275
|
+
else if (e.statusCode === 409 &&
|
19276
|
+
e.details.errorCode === BlobUsesCustomerSpecifiedEncryptionMsg) {
|
19277
|
+
// Expected exception when checking blob existence
|
19278
|
+
return true;
|
19279
|
+
}
|
19277
19280
|
span.setStatus({
|
19278
19281
|
code: coreTracing.SpanStatusCode.ERROR,
|
19279
19282
|
message: e.message,
|