mirror of
https://github.com/versity/versitygw.git
synced 2026-09-22 07:54:14 +00:00
When versioning uses sidecar metadata, deleting the current object can leave the delete-marker attribute behind after the data file is removed. A later PUT or multipart completion using the same key then inherits that stale marker and the object remains hidden from the normal object view. Clear the marker when publishing a replacement, including orphaned sidecar and suspended-versioning cases, and remove all object metadata when deleting the final version without an older version to restore. Co-authored-by: Ben McClelland <ben.mcclelland@versity.com>