OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
458 stars 232 forks source link

Uploading corrupted office files would get generalException response #1651

Open 0ut1ier opened 1 year ago

0ut1ier commented 1 year ago

Category

Expected or Desired Behavior

When we upload corrupted office files to OneDrive via Web, the upload would be failed with error message "CobaltAllZerosDetected". In other side, we can upload the corrupted office files via OneDrive app with no problem.

In my opinion, the expected behavior of uploading corrupted files to OneDrive should be one of above. Upload successfully without issue or upload failed with a more specific error code / message.

Observed Behavior

Recently we found that if we upload corrupted office files to OneDrive via one-drive-api, we would get a general error - "generalException" from server without any other information.

Steps to Reproduce

Upload corrupted office file by the following api: https://[ACCOUNT]-my.sharepoint.com/_api/v2.0/me/drive/items/[PARENT_FILE_ID]:/[FILE_NAME].docx:/content?%40name.conflictBehavior=replace

Thank you.

ghost commented 1 year ago

Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.

kashiftahir commented 1 year ago

Do you happen to have a set of correlationId/timestamp so we can dig up the logs on our end? This should be fixed server-side.

0ut1ier commented 1 year ago

Sorry for the late reply. Since it has been a long time ago, I tried to reproduce the issue base on the same file. However, either OneDrive web or OneDrive api, there is no longer error while uploading the file. I guess you have already done something to solve the issue. I would be appreciated if you could let me know you have officially solved the problem. Thank you.

0ut1ier commented 1 year ago

Hi @kashiftahir , Recently we received another customer encountered the issue. After doing some tests, we found the issue is solved in OneDrive personal account, however the OneDrive business account is not. Hope you can also fix the issue on OneDrive business account.

The request id is : 3707f3a0-4034-2000-b9f5-c3dea6d2e320 Time is: 2023-11-30 11:29:52 (+8:00)

Thank you.