You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "james-rms (via GitHub)" <gi...@apache.org> on 2025/02/18 00:27:04 UTC
[I] object_store: GCP object store cannot read objects with special characters in path [arrow-rs]
james-rms opened a new issue, #7148:
URL: https://github.com/apache/arrow-rs/issues/7148
**Describe the bug**
If a google storage bucket contains an object with name `[foo]`, the object_store crate cannot be used to read it. This is because all object paths are effectively percent-encoded *twice* before being formatted into a GCS URL. Any attempt to read `[foo]` will turn into an attempt to read `%5Bfoo%5D`, which may or may not exist in the store.
**To Reproduce**
1. Use another client (such as [the Python client](https://cloud.google.com/python/docs/reference/storage/latest)) to create an object named `[foo]` in a google storage bucket.
2. Try to read it with `GoogleCloudStorageBuilder::new().bucket_name("your bucket name").build()?.get(&Path::from("[foo]"]))`.
**Expected behavior**
The object can be read.
**Additional context**
<!--
Add any other context about the problem here.
-->
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] object_store: GCP object store cannot read objects with special characters in path [arrow-rs]
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #7148:
URL: https://github.com/apache/arrow-rs/issues/7148#issuecomment-2664816866
See https://docs.rs/object_store/latest/object_store/path/struct.Path.html
You likely want to be using
https://docs.rs/object_store/latest/object_store/path/struct.Path.html#parse
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] object_store: GCP object store cannot read objects with special characters in path [arrow-rs]
Posted by "james-rms (via GitHub)" <gi...@apache.org>.
james-rms closed issue #7148: object_store: GCP object store cannot read objects with special characters in path
URL: https://github.com/apache/arrow-rs/issues/7148
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] object_store: GCP object store cannot read objects with special characters in path [arrow-rs]
Posted by "james-rms (via GitHub)" <gi...@apache.org>.
james-rms commented on issue #7148:
URL: https://github.com/apache/arrow-rs/issues/7148#issuecomment-2666993981
Yep - found that. Thanks!
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org