-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
allow_x00=False
not affecting Headers and Cookies [BUG]
#2220
Comments
Thanks for reporting, I can confirm the issue. It happens because if there is a custom So, the fix would be to pass a bit different custom format when this config option is present.
|
P.S. Thank you for the detailed reproduction code. It helped me a lot |
Ref: #2220 Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
Ref: #2220 Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
@Stranger6667 Thanks for the quick response! |
Ref: #2220 Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
The fix is released in |
Checklist
Describe the bug
When running Schemathesis tests, I get errors from Postgres about null bytes. Possibly related to #2072.
To Reproduce
Install FastAPI and Schemathesis.
Run this code:
I also checked query parameters and form data, but those seemed to respect the configuration option.
Please include a minimal API schema causing this issue:
The API schema from the code above:
Expected behavior
Using the
allow_x00
configuration option should prevent null bytes in all strings.Environment
The text was updated successfully, but these errors were encountered: