[ACM-35524] Prevent SSE dictionary corruption from non-string resourc…#6350
[ACM-35524] Prevent SSE dictionary corruption from non-string resourc…#6350zlayne wants to merge 1 commit into
Conversation
…e values Signed-off-by: zlayne <zlayne@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zlayne The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesCompression dictionary hardening
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test unit-tests-sonarcloud |
|



…e values
📝 Summary
Ticket Summary (Title):
Policies containing CRD OpenAPI schema objects (or other nested objects) in fields like apiVersion or kind caused compressResource to store a non-string value into the shared SSE dictionary. This corrupted the dictionary and caused decompressResource to throw
TypeError: key.includes is not a functionon every subsequent client connection, aborting SSE stream setup before the end-of-packet signal was sent and leaving the UI in a permanent loading state.Ticket Link:
https://issues.redhat.com/browse/ACM-35524
Type of Change:
✅ Checklist
General
ACM-12340 Fix bug with...)If Feature
If Bugfix
🗒️ Notes for Reviewers
Summary by CodeRabbit