alamb opened a new pull request, #932:
URL: https://github.com/apache/arrow-rs-object-store/pull/932

   # Which issue does this PR close?
   
   - Follow on to #931 (related to #930)
   
   Note this is stacked on #931, so it includes that PR's commit. Only the last 
commit is new.
   
   # Rationale for this change
   
   #931 fixes GCS V4 signed URLs in two places:
   
   1. `GoogleCloudStorageConfig::path_url` now percent-encodes the path with 
`STRICT_PATH_ENCODE_SET`
   2. `GCSAuthorizer::canonicalize_request` percent-decodes and re-encodes each 
path segment via a new `canonicalize_path`
   
   With (1) in place, `url.path()` is already in canonical form, so (2) is a 
no-op for every URL this crate signs. Signing the path exactly as it appears in 
the URL is also simpler to reason about: what is signed is byte for byte what 
is sent.
   
   # What changes are included in this PR?
   
   - Remove `canonicalize_path` and sign `url.path()` directly
   - Extend `signed_url_does_not_double_encode_path` to cover keys containing 
`?` and `#` (previously parsed as the start of the query / fragment), a literal 
`%2F` in the key, sub-delimiters and non-ASCII characters
   
   # Are there any user-facing changes?
   
   No (beyond those in #931). This was tested with the unit tests only, not 
against real GCS.


-- 
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]

Reply via email to