-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Convert QuerySet to list before pickling for matching hmac #96
base: master
Are you sure you want to change the base?
Conversation
I experienced problems of different HMACs in a production environment with multiple worker threads and DB connections. The tests do not really reflect this. Any suggestions? |
fix import merge conflict, no more six but QuerySet
Codecov Report
@@ Coverage Diff @@
## master #96 +/- ##
==========================================
+ Coverage 93.64% 93.86% +0.22%
==========================================
Files 10 10
Lines 519 538 +19
Branches 65 73 +8
==========================================
+ Hits 486 505 +19
Misses 20 20
Partials 13 13
Continue to review full report at Codecov.
|
The
QuerySet
of django includes fields which sometimes vary from query to query, at least with a Postgres backend. Therefore the pickled string is different which results in a different hash and a bad_hash result.Converting the
QuerySet
to a simplelist
does not weaken any security regarding malicious changes on the preview form.