Skip to content

Commit

Permalink
CLDSRV-245: temporarily disable objectPutVersion action match
Browse files Browse the repository at this point in the history
  • Loading branch information
rachedbenmustapha committed Jul 14, 2022
1 parent ce705c8 commit 4fa5bf7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/api/apiUtils/authorization/prepareRequestContexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,21 @@ function prepareRequestContexts(apiMethod, request, sourceBucket,
// if put object with version
if (request.headers['x-scal-s3-version-id'] ||
request.headers['x-scal-s3-version-id'] === '') {
const putVersionRequestContext =
generateRequestContext('objectPutVersion');
requestContexts.push(putVersionRequestContext);
// CLDSRV-245
// const putVersionRequestContext =
// generateRequestContext('objectPutVersion');
// requestContexts.push(putVersionRequestContext);
}
} else if (apiMethodAfterVersionCheck === 'initiateMultipartUpload' ||
apiMethodAfterVersionCheck === 'objectPutPart' ||
apiMethodAfterVersionCheck === 'completeMultipartUpload'
) {
if (request.headers['x-scal-s3-version-id'] ||
request.headers['x-scal-s3-version-id'] === '') {
const putVersionRequestContext =
generateRequestContext('objectPutVersion');
requestContexts.push(putVersionRequestContext);
// CLDSRV-245
// const putVersionRequestContext =
// generateRequestContext('objectPutVersion');
// requestContexts.push(putVersionRequestContext);
}
} else {
const requestContext =
Expand Down

0 comments on commit 4fa5bf7

Please sign in to comment.