mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #498] [MERGED] added POST endpoint for acls #659
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#659
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/498
Author: @dpoetzsch
Created: 5/18/2021
Status: ✅ Merged
Merged: 5/19/2021
Merged by: @fsouza
Base:
main← Head:acl-post📝 Commits (1)
28d41d1added POST endpoint for acls, see https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/insert📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
fakestorage/server.go(+1 -0)📄 Description
Besides the
PATCHfor object-level ACLs, there is also aPOST: https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls/insertIt is called for example by the nodeJS lib when calling
file.makePublic().I added the endpoint and reused the
PATCHcode. I suspect the code is actually correct forPOSTbut might be incomplete forPATCH. Anyhow, with this PRfile.makePublic()works like a charm.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.