Gracefully handle "sentry-trace" headers that don't match the regexp#1265
Gracefully handle "sentry-trace" headers that don't match the regexp#1265st0012 merged 1 commit intogetsentry:masterfrom
Conversation
st0012
left a comment
There was a problem hiding this comment.
thanks for the fix! can you add a new changelog entry for this as well? thx
st0012
left a comment
There was a problem hiding this comment.
actually, can you add a test case to capture_exceptions_spec.rb?
|
@st0012 Done - I've also found an adjacent bug, added in a follow-up commit in this PR, since its in the same code area (happy to move to a separate PR if you prefer). |
|
@lfittl thanks for the update 👍 some thoughts:
|
Good catch - fixed now. I assume we'd want to run through the regular logic in this case (i.e. if its an invalid value, act as if the header wasn't set)
Ack, removed again from this PR. Thanks! |
st0012
left a comment
There was a problem hiding this comment.
thanks for catching the issue and proposed the great fix 😄
because I just released 4.2.0 earlier today, can you rebase the branch and update the changelog again?
# Changelog
## Unreleased <- Add this
< and put the entry here >
## 4.2.0
.....
Fixes the handling of invalid "sentry-trace" header values, such as "null".
|
@st0012 Done - rebased & updated change log entry. |
Fixes the handling of invalid "sentry-trace" header values, such as "null", that otherwise lead to an application crash.
Example error backtrace: