Closed sfackler closed 2 years ago
An invalid product version in a Witchcraft server (e.g. one generated with a .dirty suffix would cause the server to panic on startup.
.dirty
==COMMIT_MSG== Invalid user agent versions are now replaced with 0.0.0 rather than panicking. ==COMMIT_MSG==
0.0.0
This matches conjure-java-runtime's behavior: https://github.com/palantir/conjure-java-runtime-api/blob/develop/service-config/src/main/java/com/palantir/conjure/java/api/config/service/UserAgent.java#L101.
Type
Description
Before this PR
An invalid product version in a Witchcraft server (e.g. one generated with a
.dirty
suffix would cause the server to panic on startup.After this PR
==COMMIT_MSG== Invalid user agent versions are now replaced with
0.0.0
rather than panicking. ==COMMIT_MSG==This matches conjure-java-runtime's behavior: https://github.com/palantir/conjure-java-runtime-api/blob/develop/service-config/src/main/java/com/palantir/conjure/java/api/config/service/UserAgent.java#L101.
Possible downsides?