Browse Source
s3api: fix bucket-root listing w/ delimiter (#7827)
s3api: fix bucket-root listing w/ delimiter (#7827)
* s3api: fix bucket-root listing w/ delimiter * test: improve mock robustness for bucket-root listing test - Make testListEntriesStream implement interface explicitly without embedding - Add prefix filtering logic to testFilerClient to simulate real filer behavior - Special-case prefix='/' to not filter for bucket root compatibility - Add required imports for metadata and strings packages This addresses review comments about test mock brittleness and accuracy. * test: add clarifying comment for mock filtering behavior Add detailed comment explaining which ListEntriesRequest parameters are implemented (Prefix) vs ignored (Limit, StartFromFileName, etc.) in the test mock to improve code documentation and future maintenance. * logging * less logs * less check if already lockedmaster
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 103 additions and 18 deletions
-
19weed/cluster/lock_client.go
-
19weed/s3api/s3api_object_handlers_list.go
-
81weed/s3api/s3api_object_handlers_list_test.go
-
2weed/s3api/s3api_object_handlers_put.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue