Files
seaweedfs/weed/s3api
Chris LuandClaude Opus 5.5 373eb29e59 s3tables: table policy, maintenance and tag operations refuse a view (#13439)
* s3tables: table policy and maintenance reads refuse views and unfinished records

readTableMetadataAttr only checked that the table-metadata attribute was
present, so the table policy and maintenance operations accepted a view or
a record a create or rename had not finished writing. Route it through
tableMetadata, the check GetTable and the other table operations use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3tables: tagging a table ARN refuses a view or unfinished record

TagResource, ListTagsForResource and UntagResource read the
table-metadata attribute directly for a table ARN, so a view or a record
still being created or renamed under that name took and answered tags as
a table. Read a table target through readTableMetadataAttr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3tables: table record writes refuse a view

requireTableCreatedAt compared only the creation time, so a view holding
the name at write time was not rejected on its own. Refuse it, so table
policy, tag and maintenance writes never land on a view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3tables: test table operations against a view and an unfinished record

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 11:10:42 -08:00
..
2024-07-04 11:00:41 -07:00

see https://blog.aqwari.net/xml-schema-go/

1. go get aqwari.net/xml/cmd/xsdgen
2. Add EncodingType element for ListBucketResult in AmazonS3.xsd
3. xsdgen -o s3api_xsd_generated.go -pkg s3api AmazonS3.xsd
4. Remove empty Grantee struct in s3api_xsd_generated.go
5. Remove xmlns: sed s'/http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/\ //' s3api_xsd_generated.go