Skip to content

[SQL via HTTP] Failed backup has non-error HTTP status #2244

@gramian

Description

@gramian

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-password

and 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions