Skip to content

Commit aee2ae8

Browse files
committed
CLDSRV-780: add bucket owner to server access log in multiObjectDelete
1 parent 121c68c commit aee2ae8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/api/multiObjectDelete.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ function multiObjectDelete(authInfo, request, log, callback) {
502502
if (bucketShield(bucketMD, 'objectDelete')) {
503503
return next(errors.NoSuchBucket);
504504
}
505+
if (request.serverAccessLog) {
506+
// eslint-disable-next-line no-param-reassign
507+
request.serverAccessLog.bucketOwner = bucketMD.getOwner();
508+
}
505509
// The implicit deny flag is ignored in the DeleteObjects API, as authorization only
506510
// affects the objects.
507511
if (!isBucketAuthorized(bucketMD, 'objectDelete', canonicalID, authInfo, log, request)) {

0 commit comments

Comments
 (0)