mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 14:15:49 +03:00
[PR #1017] [MERGED] Do not escape the object name in the fs backend #1119
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#1119
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/1017
Author: @gaul
Created: 12/23/2022
Status: ✅ Merged
Merged: 12/28/2022
Merged by: @fsouza
Base:
main← Head:fs/do-not-escape-object-name📝 Commits (3)
a0e528eDo not escape the object name in the fs backend89ff764Use filepath.Rel to derive the object name from the path654b0a7internal/backend/fs: fix usage of filepath.Rel📊 Changes
1 file changed (+29 additions, -16 deletions)
View changed files
📝
internal/backend/fs.go(+29 -16)📄 Description
Now fake-gcs-server implicitly creates parent directories when creating an object
/foo/bar/baz. This allows creating paths longer thanNAME_MAX(256) and interoperating with existing filesystems. This approach does not allow some kinds of objects to exist, e.g.,/foo/with a non-zero object size, although these should be rare.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.