Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopyTo and CopyToAsync ignores MoveCopyOptions for same site #1091

Closed
1 task done
bburramukku opened this issue Feb 8, 2023 · 2 comments
Closed
1 task done

CopyTo and CopyToAsync ignores MoveCopyOptions for same site #1091

bburramukku opened this issue Feb 8, 2023 · 2 comments
Assignees
Labels
area: model 📐 Related to the core SDK models question Further information is requested

Comments

@bburramukku
Copy link

bburramukku commented Feb 8, 2023

Category

  • Bug

Describe the bug

  1. In CopyTo Method MoveCopyOptions parameter is ignored when calling CopyToAsync

  2. In CopyToAsync MoveCopyOptions are preserved only if the copy is to a different site

We are trying to use ResetAuthorAndCreatedOnCopy while copying a file in the same site and it's not working

image

Expected behavior

When copying a file I am expecting the author and Created information will be reset to "SharePoint App" like Modified By

Environment details (development & target environment)

  • SDK version: 1.11.0
  • OS: Windows 10
  • SDK used in: Azure Function App
  • Framework:.NET 6
  • Browser(s): Chrome
  • Tooling: Visual Studio 2022
@jansenbe jansenbe self-assigned this Feb 10, 2023
@jansenbe jansenbe added question Further information is requested area: model 📐 Related to the core SDK models labels Feb 10, 2023
@jansenbe
Copy link
Contributor

See also #989

jansenbe added a commit that referenced this issue Feb 13, 2023
…tions` and optimized file copy/move operations to use the cross site API as much as possible #989 #1091
@jansenbe
Copy link
Contributor

@bburramukku : now the same implementation is used for copy, regardless of intra site or cross site and this will fix your issue. This change will appear in the next nightly (version 1.8.100 or higher). Closing this issue now, please re-open or create a new one if the issue is still not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants