Files
seaweedfs/weed/s3api
d29b0d430c lance: a register of a new name needs a dataset at its location (#13158)
* lance: a register of a new name needs a Lance dataset at its location

A Lance register of a new name takes any free location in the table's
namespace (#12473 refuses one another record holds), so it can claim an
empty location, or a dropped table's emptied root, in the catalog's
stead.

A register of a name without a record now authorizes the create with its
location (AuthorizeCreateTable: the permission, the namespace check and
the refusal of a claimed location run before anything is read, so a
location in another namespace is answered alike whether it holds a
dataset or not), then refuses with 400 a location holding no Lance
dataset (no _versions/). A name that has a record, readable by the
caller or not (deregistered, or without GetTable), keeps the existing
path: CreateTable answers for it and bringing it back needs UpdateTable
(#12552).

Test: TestRegisterNeedsALanceDataset: an empty location 400; a caller
who may not create 403; a dropped table's root 400; another namespace's
path answers the same with and without a dataset; a written dataset
registers (positive control). Red with the dataset check removed, the
authorization skipped, or the location left out of the authorization;
TestDeregisterAndReregisterNeedUpdateTable is red when the dataset check
also runs for a name that has a record.

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

* lance: a register of a name with a record keeps the CreateTable path

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

* lance: a register needs _versions to be a directory

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

---------

Co-authored-by: Javier de la Torre <jatorre@carto.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:30:17 -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