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

Don't panic on invalid user agent versions #132

Merged
merged 4 commits into from Sep 2, 2022
Merged

Conversation

sfackler
Copy link
Member

@sfackler sfackler commented Sep 2, 2022

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?

@changelog-app
Copy link

changelog-app bot commented Sep 2, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Invalid user agent versions are now replaced with 0.0.0 rather than panicking.

Check the box to generate changelog(s)

  • Generate changelog entry

@sfackler sfackler merged commit 050f817 into develop Sep 2, 2022
@sfackler sfackler deleted the no-dirty-panics branch September 2, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants