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 a bug with empty factors #212

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

jojonas
Copy link
Contributor

@jojonas jojonas commented Apr 25, 2024

I encountered a bug where the web server would reply with an empty body on the probe request, but with a body if a certain parameter was specified. Arjun failed to recognize this, because the probe-phase set factors['same_body'] to an empty string.

During comparison, this would then be evaluated to False and the body-comparison would be skipped.

This commit fixes this bug by using the explicit None value as the "skip" placeholder.

If a factor has been defined but evaluates to "False" (e.g. an empty
body), this factor would be skipped during the compare phase. This
commit changes the behaviour to use "None" as a placeholder instead of
every False-ish value.
@s0md3v s0md3v merged commit 53afa55 into s0md3v:master Jun 5, 2024
@s0md3v
Copy link
Owner

s0md3v commented Jun 5, 2024

Thank you very much for spotting and fixing this <3

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