Skip to content

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

@labkode

Description

@labkode

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions