Skip to content

Commit

Permalink
Merge branch 'bugfix/CLDSRV-413/crr_existing_null_version' into tmp/o…
Browse files Browse the repository at this point in the history
…ctopus/w/7.70/bugfix/CLDSRV-413/crr_existing_null_version
  • Loading branch information
bert-e committed Aug 17, 2023
2 parents 3ac767f + 4abddf8 commit 0f31c07
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 @@ -484,6 +484,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 is a current null version.
Expand Down

0 comments on commit 0f31c07

Please sign in to comment.