james-rms opened a new issue, #384:
URL: https://github.com/apache/arrow-rs-object-store/issues/384
**Which part is this question about**
the `Path::parse` and `PathSegment::parse` API(s).
**Describe your question**
Right now PathSegment::parse returns InvalidPart if any character within is
a control character.
As a concrete example: I can create an object `%01.txt` in a GCS bucket
which I then can't delete through the `object_store` API. This is because:
1. If I use `Path::parse("\x01.txt")`, this results in an InvalidPart error.
2. If I use `Path::from("\x01.txt")`, this results in a Path with the raw
string "%01.txt", which gets percent-encoded _again_ in the GCS client to
become `%2501.txt`.
I don't understand why this is considered an error. Maybe this comes down to
an inconsistency in object store implementations, where some expect to get safe
paths from `Path`, and others (like GCS) expect unsafe paths which need
percent-encoding again? I don't have a lot of context.
**Additional context**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]