Re: What the purpose of having function that is not working correctly?

2020-09-11 Thread Fran Hrženjak
Just my $.02, literally yesterday I saw a str(queryset.query) used to construct a raw SQL query. It of course suffers from the worst kind of SQL injection as well. +1 to make it obvious, somehow, that kittens die every time it is used for a real query. >> On 11 Sep 2020, at 15:58, Alexander

Re: What the purpose of having function that is not working correctly?

2020-09-11 Thread Alexander Lyabah
I'm sorry. Now things sound even more confusing for me. >From one side you've said that "No, this function is never working in a useful way." (but my example from the post shows, how it works in the beginning and then stops working for datatime, which means it was pretty much useful for some ve

Re: ConditionalGetMiddleware MD5

2020-09-11 Thread Gert Burger
I'm not so sure this is a problem (wrt to using md5 hash of response content for ETags and likely also for cache keys). The probability of a naturally occurring collision with MD5 is 1.47*10-29 [1] so the risk of this scenario occurring by accident is extremely remote. If we assume that User 2 is