Skip to content

Commit 969e154

Browse files
committed
handler empty objMetadata
1 parent 9b0849a commit 969e154

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/metadata/metadataUtils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ function standardMetadataValidateBucketAndObj(params, actionImplicitDenies, log,
238238
return next(errors.AccessDenied, bucket);
239239
}
240240

241+
if (!objMetadata) {
242+
return next(null, bucket, objMetadata);
243+
}
244+
241245
let returnTagCount = false;
242246
if (params.returnTagCount) {
243247
// If returnTagCount is true we know that Vault athorized the request so it is not an implicitDeny.

0 commit comments

Comments
 (0)