Xuanwo commented on issue #9316: URL: https://github.com/apache/opendal/issues/9316#issuecomment-7275687003
_AI-generated._ @chitralverma, I’d welcome one Python PR extending `checksum` on sync and async `write` and write-mode `open`. Please keep the existing algorithm strings, `None`, and return types as they are. - `checksum=(algorithm_name, digest_bytes)` requires the full object to match the exact raw digest bytes from the caller’s trusted manifest before commit. Accept the same six names (`crc32c`, `crc64nvme`, `crc64ecma`, `md5`, `sha1`, `sha256`). If the service cannot enforce the expectation, raise `Unsupported` before sending any request. One example is `sha256` on AWS S3 or GCS. - `checksum="any"` lets OpenDAL choose a supported algorithm. Verifying each part is sufficient, so a multipart write can succeed without a final full-object digest. Please document and test both forms for sync and async callers. On a real, versioned AWS S3 or GCS bucket, write with the correct CRC32C, then try overwriting that object with an incorrect CRC32C. The overwrite must raise `ChecksumMismatch`. Independently list versions and GET the current object to confirm the version created by the successful write is still current, its contents are intact, and no new version exists. Please also verify `"any"` with a real multipart upload on Azure or B2. I’d defer `Fast` because it would exclude B2. Node.js support and generated cross-binding enum coverage are welcome separately. -- 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]
