You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ckport) (#4358)
This makes configuration files that are empty, or read and processed by
the parser but with no detected values now return an error.
Fixes#4343
Backport from dev branch
(#4347)
Defect
I mistakenly fed
nats-server
a binary rather than a configuration file, and-t
tells me it is a valid configuration.Make sure that these boxes are checked before submitting your issue -- thank you!
nats-server -DV
outputVersions of
nats-server
and affected client libraries used:Noticed this on
2.9.21-RC.1
, but this has not changed recently.OS/Container environment:
Not relevant
Steps or code to reproduce the issue:
Pass the path of a binary (or other non-textfile, like PDF) as configuration argument:
Expected result:
Non zero-exit code, and a message telling me I'm doing it wrong
Actual result:
nats-server: configuration file ./nats-server is valid
Details
Stepping through the configuration parsing steps, it seems like the entire binary is treated treated like as
itemKey
, and accepted.Even setting
pedantic
, there are no errors and no warnings.The text was updated successfully, but these errors were encountered: