Skip to content

Commit bb32ee7

Browse files
authored
Merge branch 'master' into antonpirker/1489-transaction-source
2 parents 510b8cb + a7033d8 commit bb32ee7

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.7.1
4+
5+
### Various fixes & improvements
6+
7+
- Skip malformed baggage items (#1491) by @robyoung
8+
39
## 1.7.0
410

511
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
copyright = "2019, Sentry Team and Contributors"
3030
author = "Sentry Team and Contributors"
3131

32-
release = "1.7.0"
32+
release = "1.7.1"
3333
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3434

3535

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _get_default_options():
102102
del _get_default_options
103103

104104

105-
VERSION = "1.7.0"
105+
VERSION = "1.7.1"
106106
SDK_INFO = {
107107
"name": "sentry.python",
108108
"version": VERSION,

sentry_sdk/tracing_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ def from_incoming_header(cls, header):
457457

458458
if header:
459459
for item in header.split(","):
460+
if "=" not in item:
461+
continue
460462
item = item.strip()
461463
key, val = item.split("=")
462464
if Baggage.SENTRY_PREFIX_REGEX.match(key):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_file_text(file_name):
2121

2222
setup(
2323
name="sentry-sdk",
24-
version="1.7.0",
24+
version="1.7.1",
2525
author="Sentry Team and Contributors",
2626
author_email="hello@sentry.io",
2727
url="https://github.com/getsentry/sentry-python",

tests/tracing/test_baggage.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ def test_mixed_baggage():
6565
"other-vendor-value-1=foo;bar;baz,other-vendor-value-2=foo;bar;"
6666
).split(",")
6767
)
68+
69+
70+
def test_malformed_baggage():
71+
header = ","
72+
73+
baggage = Baggage.from_incoming_header(header)
74+
75+
assert baggage.sentry_items == {}
76+
assert baggage.third_party_items == ""
77+
assert baggage.mutable

0 commit comments

Comments
 (0)