Skip to content

Commit

Permalink
CLDSRV-428: fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Nov 27, 2023
1 parent a8a63de commit 198f091
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/bucketPutObjectLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { models: { ObjectLockConfiguration } } = arsenal;
const parseXML = require('../utilities/parseXML');
const collectCorsHeaders = require('../utilities/collectCorsHeaders');
const metadata = require('../metadata/wrapper');
const { metadataValidateBucket } = require('../metadata/metadataUtils');
const { standardMetadataValidateBucket } = require('../metadata/metadataUtils');
const { pushMetric } = require('../utapi/utilities');

/**
Expand Down Expand Up @@ -41,7 +41,7 @@ function bucketPutObjectLock(authInfo, request, log, callback) {
return next(configObj.error || null, configObj);
});
},
(objectLockConfig, next) => metadataValidateBucket(metadataValParams,
(objectLockConfig, next) => standardMetadataValidateBucket(metadataValParams, request.actionImplicitDenies,
log, (err, bucket) => {
if (err) {
return next(err, bucket);
Expand Down
1 change: 1 addition & 0 deletions tests/unit/api/bucketPutPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getPolicyRequest(policy) {
host: `${bucketName}.s3.amazonaws.com`,
},
post: JSON.stringify(policy),
actionImplicitDenies: false,
};
}

Expand Down
1 change: 1 addition & 0 deletions tests/unit/api/bucketPutWebsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const testBucketPutRequest = {
bucketName,
headers: { host: `${bucketName}.s3.amazonaws.com` },
url: '/',
actionImplicitDenies: false,
};

function _getPutWebsiteRequest(xml) {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/api/objectPutRetention.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const bucketPutRequest = {
bucketName,
headers: { host: `${bucketName}.s3.amazonaws.com` },
url: '/',
actionImplicitDenies: false,
};

const putObjectRequest = new DummyRequest({
Expand Down

0 comments on commit 198f091

Please sign in to comment.