1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2025-07-25 13:02:47 +02:00
seaweedfs/weed/pb
Chris Lu 33b9017b48
fix listing objects (#7008)
* fix listing objects

* add more list testing

* address comments

* fix next marker

* fix isTruncated in listing

* fix tests

* address tests

* Update s3api_object_handlers_multipart.go

* fixes

* store json into bucket content, for tagging and cors

* switch bucket metadata from json to proto

* fix

* Update s3api_bucket_config.go

* fix test issue

* fix test_bucket_listv2_delimiter_prefix

* Update cors.go

* skip special characters

* passing listing

* fix test_bucket_list_delimiter_prefix

* ok. fix the xsd generated go code now

* fix cors tests

* fix test

* fix test_bucket_list_unordered and test_bucket_listv2_unordered

do not accept the allow-unordered and delimiter parameter combination

* fix test_bucket_list_objects_anonymous and test_bucket_listv2_objects_anonymous

The tests test_bucket_list_objects_anonymous and test_bucket_listv2_objects_anonymous were failing because they try to set bucket ACL to public-read, but SeaweedFS only supported private ACL.

Updated PutBucketAclHandler to use the existing ExtractAcl function which already supports all standard S3 canned ACLs
Replaced the hardcoded check for only private ACL with proper ACL parsing that handles public-read, public-read-write, authenticated-read, bucket-owner-read, bucket-owner-full-control, etc.
Added unit tests to verify all standard canned ACLs are accepted

* fix list unordered

The test is expecting the error code to be InvalidArgument instead of InvalidRequest

* allow anonymous listing( and head, get)

* fix test_bucket_list_maxkeys_invalid

Invalid values: max-keys=blah → Returns ErrInvalidMaxKeys (HTTP 400)

* updating IsPublicRead when parsing acl

* more logs

* CORS Test Fix

* fix test_bucket_list_return_data

* default to private

* fix test_bucket_list_delimiter_not_skip_special

* default no acl

* add debug logging

* more logs

* use basic http client

remove logs also

* fixes

* debug

* Update stats.go

* debugging

* fix anonymous test expectation

anonymous user can read, as configured in s3 json.
2025-07-22 01:07:15 -07:00
..
filer_pb convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
iam_pb add version to volume proto 2025-06-16 22:05:06 -07:00
master_pb add version to volume proto 2025-06-16 22:05:06 -07:00
message_fbs add message batch 2022-07-28 23:24:38 -07:00
mount_pb add version to volume proto 2025-06-16 22:05:06 -07:00
mq_agent_pb add version to volume proto 2025-06-16 22:05:06 -07:00
mq_pb Admin UI: Add message queue to admin UI (#6958) 2025-07-11 10:19:27 -07:00
remote_pb add version to volume proto 2025-06-16 22:05:06 -07:00
s3_pb fix listing objects (#7008) 2025-07-22 01:07:15 -07:00
schema_pb add version to volume proto 2025-06-16 22:05:06 -07:00
volume_server_pb tail-volume-uses-the-source-volume-version 2025-06-16 22:46:13 -07:00
worker_pb Admin UI: Add message queue to admin UI (#6958) 2025-07-11 10:19:27 -07:00
filer.proto worm grace period and retention time support (#6404) 2024-12-31 18:41:43 -08:00
filer_pb_tail.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
grpc_client_server.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
iam.proto [s3acl] Step1: move s3account.AccountManager into to iam.S3ApiConfiguration (#4859) 2023-09-25 08:34:12 -07:00
Makefile Admin UI add maintenance menu (#6944) 2025-07-06 13:57:02 -07:00
master.proto rename proto field from DestroyTime to expire_at_sec 2024-10-24 21:35:11 -07:00
message.fbs add message batch 2022-07-28 23:24:38 -07:00
mount.proto move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
mq_agent.proto Accumulated changes for message queue (#6600) 2025-03-09 23:49:42 -07:00
mq_broker.proto Admin UI: Add message queue to admin UI (#6958) 2025-07-11 10:19:27 -07:00
mq_schema.proto Accumulated changes for message queue (#6600) 2025-03-09 23:49:42 -07:00
proto_read_write_test.go fix tests 2022-08-18 00:15:46 -07:00
remote.proto support swift (#4480) 2023-05-19 06:39:25 -07:00
s3.proto fix listing objects (#7008) 2025-07-22 01:07:15 -07:00
server_address.go Implement SRV lookups for filer (#4767) 2023-08-24 07:08:56 -07:00
server_address_test.go Implement SRV lookups for filer (#4767) 2023-08-24 07:08:56 -07:00
server_discovery.go Implement SRV lookups for filer (#4767) 2023-08-24 07:08:56 -07:00
shared_values.go remove fixJpgOrientation 2020-06-20 12:50:40 -07:00
volume_server.proto tail-volume-uses-the-source-volume-version 2025-06-16 22:46:13 -07:00
worker.proto Admin UI add maintenance menu (#6944) 2025-07-06 13:57:02 -07:00