Closed kaiiiz closed 2 years ago
I notice a related issue, for the PUT /vault/{filename}
endpoint, if the specified folder in the path doesn't exist, the server will hang forever. (e.g. filename = c/d.md
and folder c
doesn't exist)
What I expected to get from the server response:
It should return 405 Bad Request or create the nested folder structure before creating the new file (maybe an optional parameter for this functionality?).
I notice a related issue, for the PUT
/vault/{filename}
endpoint, if the specified folder in the path doesn't exist, the server will hang forever. (e.g.filename = c/d.md
and folderc
doesn't exist)What I expected to get from the server response:
It should return 405 Bad Request or create the nested folder structure before creating the new file (maybe an optional parameter for this functionality?).
For this issue -^ I've created #24.
Thanks for another very thorough bug report; I've fixed this in c9bc41e.
Consider the following folder structure:
Request
/vault/{filename}
related endpoints withfilename = a
(a
is a folder, not a valid file).What I get from the server response: It's completely hung.
Similar results can get from
GET
,PUT
,POST
,DELETE
endpoints.What I expected to get from the server response:
It should return some errors instead of hanging (maybe 405 Bad Request?)
OS: MacOS Monterey 12.2.1 (M1) Obsidian version: 0.14.6 Obsidian local rest API version: 1.3.5