OneDrive / onedrive-sdk-ios

OneDrive SDK for iOS
https://dev.onedrive.com
Other
101 stars 88 forks source link

Second try to copy file from sub folder fails with error Error file not found. (OneDrive Personal account) #189

Open IliyanKafedzhiev opened 6 years ago

IliyanKafedzhiev commented 6 years ago

`[[[[[self.odClient drive] items:odFile.odItem.ID] copyWithName:odFile.subPathToCopy.lastPathComponent parentReference:parentRef] request] executeWithCompletion:^(ODItem item, ODAsyncOperationStatus status, NSError *error)

....`

Where odFile.odItem.ID is a valid file ID.

Steps to reproduce: Go to subfolder and copy a file to the same directory with deferent name.(success) Try again with the same file but new name again in the same directory.

Result: It fails with error: Error Domain=com.microsoft.onedrive.errors Code=404 "not found" UserInfo={error= itemNotFound : Item does not exist, NSLocalizedDescription=not found}

Comment: Any other operation over the file work with its ID, only in a reported case does not.