Uploading file to OneDrive Personal fails when filename is prefixed with the word "Windows"

Kotsak 40 Reputation points
2025-01-30T08:21:31.52+00:00

This is an odd one. Random users of our backup tool started reporting the problem mentioned in the subject.

Problem occurs regardless using "Simple item upload" or "Resumable item upload". Both fail with a HTTP 404 Not Found error. The "Simple item upload" will fail after the PUT method has been completed, where the "Resumable item upload" will fail during the create session call.

A similar issue had been reported almost a year ago on Github, unfortunately with no replies:

https://github.com/OneDrive/onedrive-api-docs/issues/1785

"Simple item upload" example:

PUT /v1.0/drive/items/2209122A8A98D500!s02e8983189a84d2b8468420b02cb5f00:/Windows.gif:/content
Connection: keep-alive
Content-Length: 539124
Authorization: Bearer xxx
Host: api.onedrive.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)

HTTP/1.1 404 Not Found
Content-Length: 204
Content-Type: application/json
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
X-MSNSERVER: BN6PPF3CFBC8E95
Strict-Transport-Security: max-age=31536000; includeSubDomains
MS-CV: UiPZ/N2+B0eQhzovmxbcdw.0
X-QosStats: {"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
X-ThrowSite: 5433.1999
X-AsmVersion: UNKNOWN; 19.1592.113.2003
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: 07E3687D74374C888BC87FB8540EDD6D Ref B: BKK30EDGE0411 Ref C: 2025-01-30T06:13:52Z
Date: Thu, 30 Jan 2025 06:13:53 GMT

{"error":{"code":"itemNotFound","message":"Item does not exist","localizedMessage":"That item seems to be missing. Someone may have deleted or moved the item, or you may not have permission to view it."}}

Resumable upload session creation:

POST /v1.0/drive/items/2209122A8A98D500!s02e8983189a84d2b8468420b02cb5f00:/Windows.gif:/upload.createSession
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
Content-Length: 145
Authorization: Bearer xxx
Host: api.onedrive.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
{"item":{"name":"Windows.gif","fileSystemInfo":{"lastModifiedDateTime":"2025-01-29T06:25:25.203Z","createdDateTime":"2025-01-28T06:25:25.203Z"}}}

HTTP/1.1 404 Not Found
Cache-Control: no-store
Content-Length: 204
Content-Type: application/json
Vary: Accept,Accept-Language,Authorization,Prefer
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
X-MSNSERVER: BN6PPF8DA18C5F4
Strict-Transport-Security: max-age=31536000; includeSubDomains
MS-CV: xBNM315InE+2p8UJvETTzg.0
X-VroomVersion: v1.0
X-QosStats: {"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
X-ThrowSite: 3847.1964
X-AsmVersion: UNKNOWN; 19.1592.113.2003
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: 06C8707EDBBE494FBB278C5FE2C4FCAD Ref B: BKK30EDGE0321 Ref C: 2025-01-30T06:25:25Z
Date: Thu, 30 Jan 2025 06:25:25 GMT
Connection: keep-alive
{"error": {"code": "itemNotFound","message": "Item does not exist","localizedMessage": "That item seems to be missing. Someone may have deleted or moved the item, or you may not have permission to view it."}}

No request-id is being returned with these failed requests so I am not sure how they can be traced.

Also, the problem seems to occur on random accounts, for example I cannot reproduce this when using my own OneDrive Personal storage, but my colleague can when using hers.

In other cases where the file name is not starting with the word "Windows" there are no issues at all.

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,287 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiajing Hua-MFST 13,940 Reputation points Microsoft Vendor
    2025-01-31T01:27:21.2333333+00:00

    Hi @Kotsak

    We support general sync issues of OneDrive on Q&A forum, but according to your description, this issue is more related to OneDrive development.

    I would like to suggest you post a new thread in Microsoft Tech Community: https://techcommunity.microsoft.com/category/onedriveforbusiness/discussions/onedrivedeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

    Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.