-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Milestone
Description
ArcadeDB Server v25.5.1 (build 5bc9f0340b5f990d68c82fd4d4b565b7eb15f8fc/1748650054630/main)
Running on Linux 6.11.0-26-generic - OpenJDK 64-Bit Server VM 21.0.7
Sending a BACKUP DATABASE command which fails returns a 200 HTTP status. I think it is reasonable to expect a HTTP status 500 in this case.
Given a database named "test", this tries to place a backup at the host root folder:
$ wget -SqO- http://localhost:2480/api/v1/command/test --post-data="{'command':'BACKUP DATABASE file:///test','language':'sql'}" --user=root --ask-passwordand results in:
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json
Content-Length: 98
Date: Tue, 03 Jun 2025 10:56:46 GMT
{"result":[{"operation":"backup database","target":"file:///test","result":"ERROR","error":null}]}
Also, maybe the error message could be improved?
This was discovered due to a write-protected backup mount in a container.
Reactions are currently unavailable