mail-server icon indicating copy to clipboard operation
mail-server copied to clipboard

[bug]: CLI Request failed

Open hollowshiroyuki opened this issue 10 months ago • 0 comments

What happened?

Using the stalwart-cli inside a container to edit some configuration like server add-config server.hostname fails with this message:

Request failed: {"type":"about:blank","status":400,"title":"Invalid parameters","detail":"Failed to deserialize JSON: unknown variant `server.hostname`, expected one of `Delete`, `Clear`, `Insert` at line 1 column 19"}

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

  • Run stalwart with docker
docker run --rm -d --name mail stalwartlabs/mail-server:v0.7.2
  • Get the credentials with docker logs mail
  • Try to use command line inside the container to update the configuration
docker exec mail stalwart-cli -u https://localhost -c <password> server add-config server.hostname foo.example.com

Version

v0.7.x

What database are you using?

RocksDB

What blob storage are you using?

RocksDB

Where is your directory located?

Internal

What operating system are you using?

Docker

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

hollowshiroyuki avatar Apr 18 '24 17:04 hollowshiroyuki