Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: stalwart-cli delete-config becomes internaly "Delete" #1082

Closed
1 task done
hofrichter opened this issue Jan 11, 2025 · 0 comments
Closed
1 task done

[bug]: stalwart-cli delete-config becomes internaly "Delete" #1082

hofrichter opened this issue Jan 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hofrichter
Copy link

What happened?

Executing stalwart-cli server delete-config server.blocked-ip. ends in 400 JSON deserialization failed.

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:Check the blocked ip:

#> stalwart-mail --version
0.11.0

#> stalwart-cli --version
stalwart-cli 0.11.0

#> stalwart-cli server list-config server.blocked-ip.

+----------------+-------+
| Key            | Value |
+----------------+-------+
| 192.168.178.34 |       |
+----------------+-------+

Try to unblock all ips:

#> stalwart-cli server delete-config server.blocked-ip.
Request failed: {"type":"about:blank","status":400,"title":"Invalid parameters","detail":"JSON deserialization failed"}

The reason can be found in stalwart-log:

[...] reason = "unknown variant `Delete`, expected one of `delete`, `clear`, `insert` at line 1 column 17", details = JSON deserialization failed

As you can see: stalwart-cli's delete-config becomes internally Delete, that does not matches any of the expected lower-case-variants.

Version

v0.11.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?

Linux

Relevant log output

2025-01-11T07:34:21Z ERROR Bad resource parameters (resource.bad-parameters) listenerId = "https", localPort = 8083, remoteIp = 127.0.0.1, remotePort = 41890, reason = "unknown variant `Delete`, expected one of `delete`, `clear`, `insert` at line 1 column 17", details = JSON deserialization failed

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hofrichter hofrichter added the bug Something isn't working label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant