mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #440] [CLOSED] Add delete routes #613
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#613
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/440
Author: @kmgreen2
Created: 3/2/2021
Status: ❌ Closed
Base:
main← Head:add-delete-route📝 Commits (4)
32a841aAdding delete route64b4809Update module name4d574d2Adding another DELETE path0c51fa1Adding new routes for list endpoint📊 Changes
3 files changed (+27 additions, -2 deletions)
View changed files
📝
examples/go/main.go(+21 -1)📝
fakestorage/server.go(+5 -0)📝
go.mod(+1 -1)📄 Description
I am not sure if others are hitting this, but I consistently got 405 whenever I tried issuing deletes using the official Golang GCS SDK.
Looking closer at the code, it seems like some of the routers are not in use? In
buildMuxer()(server.go:189), I see thatroutersis allocated, but never used. Furthermore, I only see the routers defined on server.go:213 through server.go:225 when inspecting/debugging mux.go:136 (mux:v1.8.0).What is the intention of
server.go:198? Should that be removed, or am I missing a side-effect. If there is a side-effect associated with routers, I would suggest you directly define those routes.In any case, deletes are returning a 405 because the server cannot find a route. Since I am not sure of the intention of
server.go:198, I have added new delete routes directly tos.mux, which fixes the issue.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.