Skip to content

Commit

Permalink
Merge branch 'w/8.7/bugfix/CLDSRV-413/crr_existing_null_version' into…
Browse files Browse the repository at this point in the history
… tmp/octopus/w/8.8/bugfix/CLDSRV-413/crr_existing_null_version
  • Loading branch information
bert-e committed Aug 17, 2023
2 parents 40ac591 + 9fae95f commit 30bf9c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/routes/routeBackbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ function putMetadata(request, response, bucketInfo, objMd, log, callback) {
// Retrieve the null version id from the object metadata.
versionId = objMd && objMd.versionId;
if (!versionId) {
// Set isNull in the object metadata to be written.
// Since metadata will generate a versionId for the null version,
// the flag is need to allow cloudserver to know that the version
// is a null version and allow access to it using the "null" versionId.
omVal.isNull = true;
if (versioning) {
// If the null version does not have a version id, it can only be a unique current null version.
Expand Down

0 comments on commit 30bf9c7

Please sign in to comment.