| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks for catching this edge case @saschabuehrle & contributing 🥇 change look good to me!
The optimal fix for #1447 is to get the RequestVerification middleware to run before the extraction logic, this would involve moving the extraction logic into a middleware which would be a breaking change
This PR in combination with #1464 aim to improve the robustness of the extraction logic so that no errors are thrown before the RequestVerification middleware is ran, for this reason we won't close #1447 just yet
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1481 +/- ##
==========================================
+ Coverage 91.31% 91.32% +0.01%
==========================================
Files 228 228
Lines 7262 7262
==========================================
+ Hits 6631 6632 +1
+ Misses 631 630 -1 ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
This prevents extract_team_id() from raising KeyError when malformed payloads contain user or view objects without a team_id key.
Changes
Why
Slack requests should still be rejected by request verification, but malformed traffic should not crash context extraction before middleware runs.
Testing
Fixes #1447
Greetings, saschabuehrle