Bucket API alias not working #829
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#829
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I found an error with the /bucket API endpoint. If im trying to get a bucket by their alias, then the API returns the list of buckets instead of the specified bucket.
For example:
curl http://127.0.0.1:3903/v1/bucket?alias=v7demo-system -H "Accept: application/json" -H "Authorization: Bearer XXX"
[
{
"id": "94cab56ba38509c9326808be85657f3ef288082088464a2a1507e35fceb25d54",
"globalAliases": [
"v7demo-sounds"
],
"localAliases": []
},
{
"id": "d8cb14384aeb8831c67fdc3a1cda98391ad3d4c4754a86365e458fdce63c69be",
"globalAliases": [
"tesztbucket"
],
"localAliases": []
},
{
"id": "dde1dac2673f37b6de37643b4aaa7093db6a39a6b9d0baa83e2d75da2b298d1c",
"globalAliases": [
"v7demo-system"
],
"localAliases": []
}
]
Actually, it is not a big problem, because i can extract the ID from the list, but it would be nice, if the search for a global alias will work as excepted.
Or am i doing something wrong?
Thanks,
Zoltan
The syntax for GetBucketInfo is
GET /v1/bucket?globalAlias=<alias>
If that fixes your problem, I'll let you close this issue
Actually it fixes, thank you. Maybe it would be nice to modify the HTML documentation, because i have found this "alias=$NAME" syntax in the docs. (https://garagehq.deuxfleurs.fr/api/garage-admin-v1.html#tag/Bucket/operation/GetBucketInfo)
Just for the record: im really like your simple but replicated S3 server, so i hope it will be around for a long time.