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

fix: Raise a new InvalidCompression Outcome for invalid Unreal compression [ISSUE-1454] #1237

Merged
merged 1 commit into from
May 6, 2022

Conversation

Swatinem
Copy link
Member

Not entirely sure this is the right thing to do, however as much as I can tell ISSUE-1454 looks like the Unreal reporter is sending invalid compression payloads. Might be good to distinguish those from actual Unreal parse errors.

@Swatinem Swatinem requested a review from a team April 22, 2022 12:03
@jan-auer
Copy link
Member

You've mentioned that you'd like to specifically detect invalid encoding. I agree that it makes sense to introduce a new outcome for this, and detect invalid content encoding when converting from PayloadError. Would you like to make this change, instead?

@Swatinem
Copy link
Member Author

I think this change here is fair to do. I was rather questioning why symbolic-unreal does decompression internally, and why not just rely on the caller to handle that.

@Swatinem Swatinem force-pushed the fix/unreal-compression branch from f4c1a90 to db8f2be Compare May 6, 2022 11:35
@Swatinem Swatinem changed the title fix: Raise a Payload Outcome for invalid Unreal compression (ISSUE-1454) fix: Raise a new InvalidCompression Outcome for invalid Unreal compression (ISSUE-1454) May 6, 2022
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

nit: It's called BadCompression once and InvalidCompression in outcomes, you could align that.

We'll follow up with emitting the same outcome for bad compression in regular web requests, too.

@jan-auer jan-auer changed the title fix: Raise a new InvalidCompression Outcome for invalid Unreal compression (ISSUE-1454) fix: Raise a new InvalidCompression Outcome for invalid Unreal compression [ISSUE-1454] May 6, 2022
@Swatinem
Copy link
Member Author

Swatinem commented May 6, 2022

nit: It's called BadCompression once and InvalidCompression in outcomes, you could align that.

Fun fact, the docstring describes that as Invalid compressed data. Relay is going with InvalidXXX, so lets stay with that.

@Swatinem Swatinem merged commit f17b293 into master May 6, 2022
@Swatinem Swatinem deleted the fix/unreal-compression branch May 6, 2022 12:53
jan-auer added a commit that referenced this pull request May 13, 2022
* master:
  feat(sampling): Support custom tags and more contexts (#1268)
  deps: Update symbolic to pull in Unreal parser fixes (#1266)
  Bring in CLA Lite (#1257)
  release: 0.8.11
  ref(profiling): Normalize all profiles (#1250)
  feat(profiling): Add a profile data category and count profiles in an envelope to apply rate limits (#1259)
  fix: Raise a new InvalidCompression Outcome for invalid Unreal compression (#1237)
  chore: Update logo for dark or light theme (#1262)
  ref: Use Duration to compute breakdowns and span durations (#1260)
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.

2 participants