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

[storage-local] Return 500 when moving file over a directory #2

Open
labkode opened this issue Sep 13, 2015 · 0 comments
Open

[storage-local] Return 500 when moving file over a directory #2

labkode opened this issue Sep 13, 2015 · 0 comments
Assignees
Labels

Comments

@labkode
Copy link
Member

labkode commented Sep 13, 2015

Error returned:

{"RID":"api-059899a6-29b5-4e99-9009-2f3e4026ca28","level":"error","msg":"Cannot rename resource: [map[err:rename /home/clawiod/data/notmp/fileauth/demo/passwd /home/clawiod/data/notmp/fileauth/demo/passwd2: is a directory]]","time":"2015-09-13T14:35:18Z"}

Similar to #1 .

We have to catch the is a directory error and return 412 Precondition Failed.

@labkode labkode added the bug label Sep 13, 2015
@labkode labkode self-assigned this Sep 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant