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

File Move API can return 500 for directories #83

Closed
jimmyca15 opened this issue May 4, 2017 · 0 comments
Closed

File Move API can return 500 for directories #83

jimmyca15 opened this issue May 4, 2017 · 0 comments
Milestone

Comments

@jimmyca15
Copy link
Member

jimmyca15 commented May 4, 2017

When using the move api (/api/files/move) to move a directory it is possible that a 500 may occur. The cause is a race condition between the calculation of the size of the directory and the move operation.

https://github.com/Microsoft/IIS.Administration/blob/master/src/Microsoft.IIS.Administration.Files/Copy/MoveHelper.cs#L168
https://github.com/Microsoft/IIS.Administration/blob/master/src/Microsoft.IIS.Administration.Files/Copy/MoveOperation.cs#L54

Copy is not affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant