Skip to content

Conversation

@alex-hofsteede
Copy link
Contributor

Only if value is a string, can we split() it. Otherwise if it is not None we can json.dumps() it.

Should fix SENTRY-3XB https://sentry.io/sentry/sentry/issues/317019975/

@alex-hofsteede alex-hofsteede requested a review from a team October 10, 2017 02:59
@dcramer
Copy link
Member

dcramer commented Oct 10, 2017

i see you are immediately jumping into 'sentry accepts any kind of garbage data you throw at it' hell

@alex-hofsteede
Copy link
Contributor Author

Ha, nah this was just an opportunistic fix from playing around with the product. But I guess maybe I've started down the road to hell here :)

@mattrobenolt
Copy link
Contributor

Might as well add a test. 💅

Only if value is a string, can we split() it. Otherwise if it is not
None we can json.dumps() it. Added test.

Should fix SENTRY-3XB https://sentry.io/sentry/sentry/issues/317019975/
@alex-hofsteede
Copy link
Contributor Author

test added, fails on master, passes on this branch

Copy link
Contributor

@mattrobenolt mattrobenolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍪

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants