Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not escape the object name in the fs backend #1017

Merged
merged 3 commits into from Dec 28, 2022

Conversation

gaul
Copy link
Contributor

@gaul gaul commented Dec 23, 2022

Now fake-gcs-server implicitly creates parent directories when creating an object /foo/bar/baz. This allows creating paths longer than NAME_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.

@gaul gaul force-pushed the fs/do-not-escape-object-name branch 2 times, most recently from 2e2c612 to 07dc6ed Compare December 23, 2022 09:33
Now fake-gcs-server implicitly creates parent directories when creating an
object /foo/bar/baz.  This allows creating paths longer than NAME_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.
@gaul gaul force-pushed the fs/do-not-escape-object-name branch from 07dc6ed to a0e528e Compare December 23, 2022 09:35
@gaul
Copy link
Contributor Author

gaul commented Dec 23, 2022

Sorry had some trouble with Windows.

Copy link
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing and apologies for the delayed response!

internal/backend/fs.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants