Xuanwo opened a new pull request, #9308:
URL: https://github.com/apache/opendal/pull/9308

   # Which issue does this PR close?
   
   Relates to #6274.
   
   # Rationale for this change
   
   B2 stored the cache policy supplied through `WriteOptions.cache_control` on 
a presigned POST, but an ordinary `op.stat(path).await?.cache_control()` 
returned `None`.
   
   # What changes are included in this PR?
   
   The B2 file metadata parser copies the reserved cache policy verbatim into 
`Metadata::cache_control()`. The regression test covers a policy containing a 
literal `%20` and a file with both a reserved policy and a custom 
`cache-control` entry.
   
   # Are there any user-facing changes?
   
   Yes. In live B2 runs before and after the fix, the upload receipt, 
`b2_get_file_info`, and ordinary `stat(path).version()` agreed on the file ID 
for each upload. For the policy `private, max-age=137`, the stat getter 
returned `None` before the fix and `Some("private, max-age=137")` afterward. 
With only a custom `cache-control` entry, both revisions returned `None` from 
the getter and `no-store` from `user_metadata()["cache-control"]`.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Pi, `magpie/codex/gpt-6.2-sol`, `max`: implemented the change and verified 
it against B2.
   - Pi, `magpie/codex/gpt-6.2-astra`, `high`: drafted and checked the PR title 
and description.
   - Pi, `magpie/devin/swe-2-1`, provider default: independently reviewed the 
signed commit, regression assertions, and native B2 receipts.
   


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