Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/api/apiUtils/object/abortMultipartUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ function abortMultipartUpload(authInfo, bucketName, objectKey, uploadId, log,
const options = preprocessingVersioningDelete(
bucketName, destBucket, objectMD, objectMD.versionId, config.nullVersionCompatMode);
options.replayId = uploadId;
options.overheadField = constants.overheadField;
// This is a ghost metadata, without data loss, so skip oplog
options.doesNotNeedOpogUpdate = true;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenko/cloudserver",
"version": "9.0.32-2",
"version": "9.0.32-3",
"description": "Zenko CloudServer, an open-source Node.js implementation of a server handling the Amazon S3 protocol",
"main": "index.js",
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/api/apiUtils/object/abortMultipartUpload.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { errors } = require('arsenal');
const async = require('async');
const crypto = require('crypto');

const { overheadField } = require('../../../../../constants');
const abortMultipartUpload = require('../../../../../lib/api/apiUtils/object/abortMultipartUpload');
const { bucketPut } = require('../../../../../lib/api/bucketPut');
const initiateMultipartUpload = require('../../../../../lib/api/initiateMultipartUpload');
Expand Down Expand Up @@ -305,6 +306,8 @@ describe('abortMultipartUpload', () => {
assert.ifError(err);
sinon.assert.calledOnce(deleteObjectMDStub);
assert.strictEqual(deleteObjectMDStub.getCall(0).args[2].versionId, 'orphan-vid');
assert.deepStrictEqual(
deleteObjectMDStub.getCall(0).args[2].overheadField, overheadField);
done();
}, { ...abortRequest, query: { uploadId: 'abort-id' } });
});
Expand Down
Loading