OneDrive/onedrive-sdk-ios

Can't copy item to the same folder

DemianSteelstone opened this issue · 1 comments

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?

My bad, didn't change item copy name