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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jojonas
Copy link

@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.
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.

None yet

1 participant