chitralverma commented on PR #9348:
URL: https://github.com/apache/opendal/pull/9348#issuecomment-7252870151

   (AI-generated reply)
   
   Fixed in 6742b5eb8. The head is now ac5b8e917, which also merges current 
`main`.
   
   **1. `NotFound` wording.** I reproduced this on a release build of this 
branch with `new Operator('memory')`, for both `stat` and `statSync`:
   
   - No options: `NotFound (permanent) ... memory doesn't have this path`.
   - `{ ifMatch: '"etag"' }`: `Unsupported (permanent) ... The service does not 
support the operation stat with the arguments if_match`.
   - `{ overrideContentType: 'text/plain' }`, which `memory` accepts: 
`NotFound`.
   - `{ ifModifiedSince: 'not-a-date' }`: `ifModifiedSince must be an ISO 8601 
timestamp, ...`.
   
   The core `StatOptions` doc now says: "With valid, supported options, stat 
returns [`crate::ErrorKind::NotFound`] for a missing file." 
([options.rs#L548-L549](https://github.com/apache/opendal/blob/ac5b8e917b79375631daf710a167ae15e19fe4f0/core/core/src/types/options.rs#L548-L549))
   
   **2. `override_*` wording.** This is from your #9351 review. I made the 
change here so the shared source changes only once. I pointed a plain async 
`stat` on `s3` at a local listener. It sent `HEAD 
/probe/file.txt?response-content-disposition=attachment&response-content-type=text/x-probe&response-cache-control=no-store`.
 The three fields now say: "Request a `content-type` response header override 
from services that support it, including for presigned stat requests." 
`cache-control` and `content-disposition` follow the same pattern. 
([options.rs#L638-L646](https://github.com/apache/opendal/blob/ac5b8e917b79375631daf710a167ae15e19fe4f0/core/core/src/types/options.rs#L638-L646))
   
   I left out a pointer to the `stat_with_override_*` capabilities because the 
flags don't track support: GCS and TOS apply these overrides on `HEAD` without 
advertising them, and B2 advertises them but applies them only to presigned 
stat.
   
   **Regenerated bindings.** Running every `ci_odev.yml` generator changes only 
the `StatOptions` docs:
   
   - Node.js: `src/options/stat.rs` and `generated.d.ts`.
   - Java and .NET: comment-only diffs.
   
   The Java Javadoc contract test in `dev/src/generate/java.rs` pinned the old 
presign sentence for `StatOptions`. It now expects the new wording, and it 
fails if the old core text is restored.
   
   **Possible follow-up, not changed here.** `ReadOptions` 
([L200](https://github.com/apache/opendal/blob/ac5b8e917b79375631daf710a167ae15e19fe4f0/core/core/src/types/options.rs#L200))
 and `ReaderOptions` 
([L389](https://github.com/apache/opendal/blob/ac5b8e917b79375631daf710a167ae15e19fe4f0/core/core/src/types/options.rs#L389))
 carry the same unqualified `NotFound` sentence. The `ReadOptions` `override_*` 
fields still say they are meaningful only with presign, although S3 `GetObject` 
also sends them as `response-*` parameters.


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