fix(http): reject request-condition(s) in fuzzing - #7466
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Walkthrough
ChangesFuzzing + request-condition mutual exclusion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Poem
🚥 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 docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/protocols/http/validate_test.go`:
- Around line 72-73: The test assertions in the subtests are expecting an error
message that does not match what the validate() function actually returns.
Update the require.Contains assertions to expect the actual error message string
that validate() produces when rejecting fuzzing with request-condition matchers
or extractors. This fix applies at both the first location (around line 72-73)
and the second affected location (around line 86-87) where the same validation
error is tested.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 786ecd12-681d-4105-950f-6ac23f06ca9f
📒 Files selected for processing (2)
pkg/protocols/http/validate.gopkg/protocols/http/validate_test.go
HTTP fuzzing does not maintain the ordered request history used by request-condition fields. Reject fuzzing templates that reference those fields at validation time instead of letting them eval with an invalid request count. Fixes #4891 Signed-off-by: Dwi Siswanto <git@dw1.io>
b39356c to
037abd8
Compare
|
Reviewed this PR. Assessment: Implementation looks solid and follows project conventions. Clean code quality. Approved ✅ |
Proposed changes
HTTP fuzzing does not maintain the ordered request
history used by request-condition fields. Reject
fuzzing templates that reference those fields at
validation time instead of letting them eval with
an invalid request count.
Fixes #4891
Proof
Checklist
Summary by CodeRabbit