Xuanwo commented on PR #8313:
URL: https://github.com/apache/opendal/pull/8313#issuecomment-7048941039

   **AI-generated review**
   
   Thanks for the `/shares` anchoring design and the conservative `Capability` 
set. We can proceed with conditional in-tree review and keep a separate 
`sharepoint` entrypoint. We can identify Microsoft Graph operations to share 
with `services/onedrive` as the review progresses, with no upfront 
`graph-common` crate requirement.
   
   **Real-tenant verification and CI**
   
   1. Could you run `cargo test behavior` against a real Microsoft 365 tenant 
on the revised head and share the sanitized output? Please include a way 
maintainers can repeat the run, such as a CI workflow using secrets or a 
documented manual setup.
   2. The `toml-format` check fails on the placement of `asyncband` in 
`[dependencies]` in `core/services/sharepoint/Cargo.toml`.
   
   **Implementation findings**
   
   3. **Copy can remove the destination before it knows the copy will succeed** 
(`core.rs:667–738`). The destination lookup checks only the HTTP status, then 
deletes any existing item before submitting the copy. A failed copy can leave 
the destination missing. If a path without a trailing slash resolves to a 
folder, the delete reaches that folder. If both paths resolve to the same Graph 
item, it reaches the source. Please cover these cases on the tenant. The public 
`Operator` already rejects identical normalized paths and paths ending in a 
slash, so the generic self-copy and directory tests do not exercise these 
backend cases.
   4. **Rename discards source lookup errors** (`core.rs:773–820`). The source 
lookup translates every non-successful HTTP status to `NotFound`, including 
permission and throttling errors. It also proceeds without checking the source 
or destination item type. Could you verify how rename handles an existing 
folder addressed without a trailing slash and preserve the original lookup 
error classification?
   5. **Nested copy and rename destinations** (`core.rs:202–228`). 
`ensure_directory` makes one create request under the immediate parent. When 
several parent levels are missing, that request addresses a parent that does 
not exist. Please include `test_copy_nested` and `test_rename_nested` in the 
live run.
   6. **Copy polling loses the terminal error** (`core.rs:741–771`). The poller 
deserializes the body without checking the HTTP status. A Graph monitor 
response with `status: "failed"` can keep it polling for up to 3,600 attempts 
at one-second intervals, then report a generic timeout. Please handle HTTP 
errors and terminate on a failed copy status.
   7. **Folder creation uses `conflictBehavior=replace`** 
(`graph_model.rs:153–163`). Could you verify on the tenant that creating an 
existing non-empty folder preserves its children, including when another caller 
creates the folder concurrently?
   8. **Drive items without a file or folder facet fail deserialization** 
(`graph_model.rs:64–87, 114–118`). A `package` or `remoteItem` without either 
supported facet cannot decode as a `SharePointItem`, which rejects the entire 
`children` page and affects `stat` for such an item. Please verify with a 
library containing one of these items.
   9. **Chunked uploads discard the server's progress** (`writer.rs:105–161`). 
The writer ignores `nextExpectedRanges` and advances using its local offset. 
Retrying the whole write creates a fresh session at byte zero. Could you verify 
how an interrupted upload is recovered and what gets retransmitted?
   10. **Version listing is unreachable** (`lister.rs:102, 158–165`). 
`list_with_versions` gates the call to `sharepoint_list_versions`, and the 
service never enables the capability. Please verify and expose the capability 
or defer the code until it has live coverage.


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