[PR #1274] [MERGED] backend/fs: return empty BucketAttrs if the metadata file is missing #1347

Closed
opened 2026-03-03 12:34:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/1274
Author: @fsouza
Created: 8/1/2023
Status: Merged
Merged: 8/1/2023
Merged by: @fsouza

Base: mainHead: fs-backend-return-empty-bucket-metadata-when-.bucketMetadata-doesnt-exist


📝 Commits (1)

  • a875a49 backend/fs: return empty BucketAttrs if the metadata file is missing

📊 Changes

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

View changed files

📝 internal/backend/fs.go (+3 -0)
internal/backend/fs_test.go (+76 -0)

📄 Description

This keeps the server compatible with the directory structure from versions older than 1.46.0.

Closes #1271.


🔄 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/1274 **Author:** [@fsouza](https://github.com/fsouza) **Created:** 8/1/2023 **Status:** ✅ Merged **Merged:** 8/1/2023 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `fs-backend-return-empty-bucket-metadata-when-.bucketMetadata-doesnt-exist` --- ### 📝 Commits (1) - [`a875a49`](https://github.com/fsouza/fake-gcs-server/commit/a875a49189ca86280b4edddbf689856bafc64d3c) backend/fs: return empty BucketAttrs if the metadata file is missing ### 📊 Changes **2 files changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `internal/backend/fs.go` (+3 -0) ➕ `internal/backend/fs_test.go` (+76 -0) </details> ### 📄 Description This keeps the server compatible with the directory structure from versions older than 1.46.0. Closes #1271. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:34:11 +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#1347
No description provided.