mirror of
https://github.com/versity/versitygw.git
synced 2026-10-22 06:12:39 +00:00
ListObjects omitted the Marker element when the request had no marker. S3 returns an empty Marker element in this case, allowing clients to read the field without a presence check. The backend converts an empty marker to a nil pointer and encoding/xml omits nil pointers. Restore the request marker in the controller after the backend call so the behavior is consistent across backends. Update the controller, integration, and REST coverage to verify that an empty Marker element is returned. Fixes #2191