OneDrive / onedrive-sdk-ios

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

Can't copy item to the same folder #167

Closed DemianSteelstone closed 7 years ago

DemianSteelstone commented 7 years ago

Hi, I've tried to make a copy of a file (copy to the same folder), but got an error here:

[ODXActionController copyItem:self.selectedItems.firstObject withClient:self.client viewController:self completion:^(ODItem *item, ODAsyncOperationStatus *status, NSError *error){
                if (item || error){
                    [self showMovedOrCopiedItem:item withError:error];
                }
            }];

Error Domain=com.microsoft.onedrive.errors Code=500 "internal server error" UserInfo={error= malformed : (null), NSLocalizedDescription=internal server error}

Also it call completion block twice. 1) item == nil and error == nil 2) item == nil and error above

Anything I can do?

DemianSteelstone commented 7 years ago

My bad, didn't change item copy name