[PR #805] [MERGED] Return a 409 when attempting to create a bucket that already exists #933

Closed
opened 2026-03-03 12:32:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/805
Author: @dnerdy
Created: 6/2/2022
Status: Merged
Merged: 6/2/2022
Merged by: @fsouza

Base: mainHead: existing-bucket-409


📝 Commits (1)

  • 67191a5 Return a 409 when attempting to create a bucket that already exists

📊 Changes

2 files changed (+35 additions, -0 deletions)

View changed files

📝 fakestorage/bucket.go (+13 -0)
📝 fakestorage/bucket_test.go (+22 -0)

📄 Description

This PR updates createBucketByPost to return a 409 response when the
bucket being created already exists. This matches the behavior of the
GCS API.

Fixes #804.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/805 **Author:** [@dnerdy](https://github.com/dnerdy) **Created:** 6/2/2022 **Status:** ✅ Merged **Merged:** 6/2/2022 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `existing-bucket-409` --- ### 📝 Commits (1) - [`67191a5`](https://github.com/fsouza/fake-gcs-server/commit/67191a5ff910718150fd8fc25737453a3e611dcb) Return a 409 when attempting to create a bucket that already exists ### 📊 Changes **2 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/bucket.go` (+13 -0) 📝 `fakestorage/bucket_test.go` (+22 -0) </details> ### 📄 Description This PR updates createBucketByPost to return a 409 response when the bucket being created already exists. This matches the behavior of the GCS API. Fixes #804. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:32:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#933
No description provided.