PypeBros
14a89c4798
bpo-38686: fix HTTP Digest handling in request.py ( #17045 )
...
* fix HTTP Digest handling in request.py
There is a bug triggered when server replies to a request with `WWW-Authenticate: Digest` where `qop="auth,auth-int"` rather than mere `qop="auth"`. Having both `auth` and `auth-int` is legitimate according to the `qop-options` rule in §3.2.1 of [[https://www.ietf.org/rfc/rfc2617.txt |RFC 2617]]:
> qop-options = "qop" "=" <"> 1#qop-value <">
> qop-value = "auth" | "auth-int" | token
> **qop-options**: [...] If present, it is a quoted string **of one or more** tokens indicating the "quality of protection" values supported by the server. The value `"auth"` indicates authentication; the value `"auth-int"` indicates authentication with integrity protection
This is description confirmed by the definition of the [//n//]`#`[//m//]//rule// extended-BNF pattern defined in §2.1 of [[https://www.ietf.org/rfc/rfc2616.txt |RFC 2616]] as 'a comma-separated list of //rule// with at least //n// and at most //m// items'.
When this reply is parsed by `get_authorization`, request.py only tests for identity with `'auth'`, failing to recognize it as one of the supported modes the server announced, and claims that `"qop 'auth,auth-int' is not supported"`.
* 📜 🤖 Added by blurb_it.
* bpo-38686 review fix: remember why.
* fix trailing space in Lib/urllib/request.py
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com >
2019-11-22 15:19:08 -08:00
..
2019-11-19 21:34:03 +00:00
2019-10-20 10:19:47 -07:00
2019-06-28 11:54:52 -07:00
2019-11-19 21:34:03 +00:00
2019-06-05 18:22:31 +03:00
2019-04-29 16:23:28 -07:00
2019-11-19 11:45:20 -08:00
2019-10-05 09:19:15 -07:00
2019-09-11 14:08:41 +01:00
2019-09-13 09:01:20 -07:00
2019-08-27 11:48:06 +09:00
2019-11-22 15:22:11 +01:00
2019-11-20 01:18:39 -05:00
2019-11-21 09:11:43 +00:00
2019-05-14 18:52:42 +02:00
2019-11-19 21:34:03 +00:00
2019-11-13 09:03:45 +00:00
2019-11-19 21:34:03 +00:00
2019-11-19 21:34:03 +00:00
2019-11-19 12:17:21 +01:00
2019-09-17 09:20:56 +03:00
2019-11-22 15:22:11 +01:00
2019-11-12 16:57:03 +02:00
2019-09-09 07:16:33 -07:00
2019-11-20 16:27:51 -08:00
2019-11-22 15:19:08 -08:00
2019-10-07 14:07:19 -07:00
2019-05-24 20:24:42 +03:00
2019-11-19 21:34:03 +00:00
2019-11-13 18:13:52 +02:00
2018-12-19 08:19:39 -08:00
2019-06-01 11:00:15 +03:00
2019-08-25 23:45:40 +10:00
2018-12-19 18:19:01 +01:00
2019-06-01 11:00:15 +03:00
2019-05-06 22:29:40 +03:00
2019-11-12 14:51:34 -08:00
2018-05-20 13:42:30 -04:00
2019-06-01 11:00:15 +03:00
2019-05-20 10:01:07 -07:00
2018-12-31 09:56:21 +02:00
2019-06-18 00:00:24 +02:00
2018-09-13 22:45:00 -07:00
2019-11-21 22:51:45 -08:00
2019-09-09 23:36:13 +03:00
2019-11-19 21:34:03 +00:00
2019-09-01 12:12:52 +03:00
2018-07-24 12:52:51 +03:00
2019-08-30 16:21:19 -04:00
2019-10-28 21:38:50 -07:00
2018-11-01 12:33:35 +02:00
2019-08-04 13:14:03 -07:00
2019-09-11 12:05:53 +01:00
2018-05-09 12:39:32 +03:00
2019-05-31 22:44:00 +03:00
2019-11-19 21:34:03 +00:00
2019-10-15 11:26:13 +02:00
2019-03-03 18:23:19 -08:00
2019-06-05 18:22:31 +03:00
2018-07-09 23:14:54 +03:00
2018-10-31 02:28:07 +02:00
2019-06-05 18:22:31 +03:00
2019-10-07 21:22:17 -07:00
2019-05-10 03:50:11 +02:00
2019-10-13 14:45:36 +03:00
2019-09-19 14:34:41 +01:00
2019-11-12 16:57:03 +02:00
2019-09-28 07:49:15 -07:00
2019-09-01 12:16:51 +03:00
2019-11-19 21:34:03 +00:00
2019-11-19 21:34:03 +00:00
2019-10-28 15:40:08 +01:00
2019-08-16 21:09:16 -05:00
2019-09-02 21:21:33 -07:00
2019-11-11 23:30:18 -08:00
2019-11-18 21:54:00 -08:00
2019-11-19 21:34:03 +00:00
2019-05-09 16:22:15 +02:00
2019-06-24 08:42:54 -07:00
2019-11-16 18:56:57 +02:00
2019-09-13 14:31:19 +01:00
2019-05-31 21:13:57 -07:00
2019-10-17 20:30:42 -07:00
2019-07-30 18:16:13 -04:00
2019-10-28 15:40:08 +01:00
2019-10-15 12:40:02 +01:00
2019-05-23 08:45:22 -07:00
2019-09-27 20:02:58 +03:00
2019-03-25 22:01:12 +00:00
2019-08-29 00:33:52 -04:00
2018-10-18 20:21:47 -04:00
2019-10-11 22:41:35 -07:00
2019-05-24 23:57:23 +02:00
2019-06-27 10:47:59 -07:00
2019-11-15 09:49:21 -08:00
2019-11-21 09:11:43 +00:00
2019-06-01 11:00:15 +03:00
2018-09-07 17:30:33 +02:00
2019-09-10 13:43:58 +01:00
2019-11-18 12:26:37 +01:00
2019-11-12 14:42:47 -08:00
2019-06-13 13:58:51 +02:00
2019-05-26 17:10:09 +02:00
2019-06-27 09:04:28 +02:00
2019-09-05 10:11:35 +02:00
2019-11-19 21:34:03 +00:00
2019-04-17 17:05:30 +02:00
2019-06-26 16:13:18 -07:00
2019-06-05 18:22:31 +03:00
2019-06-03 01:12:33 +02:00
2019-05-28 19:29:04 +03:00
2019-06-03 01:12:33 +02:00
2019-11-13 18:13:52 +02:00
2019-06-25 02:53:30 +01:00
2019-09-01 12:16:51 +03:00
2019-08-22 09:19:36 -07:00
2019-05-31 10:39:47 +03:00
2019-11-18 11:11:13 -08:00
2018-04-09 17:16:01 +03:00
2019-10-31 10:23:20 +00:00
2019-10-01 11:40:54 +08:00
2018-09-12 10:28:53 -07:00
2019-06-29 10:34:11 -07:00
2019-10-12 10:24:26 -07:00
2019-10-04 17:30:58 -07:00
2019-10-01 11:40:54 +08:00
2019-11-16 19:14:45 +01:00
2018-10-05 20:53:45 +03:00
2019-05-06 22:29:40 +03:00
2019-07-31 21:50:39 +03:00
2019-07-02 11:39:42 -07:00
2019-10-10 09:34:46 +02:00
2019-11-11 23:35:06 -08:00
2019-10-21 09:36:21 +03:00
2019-11-17 16:08:31 +02:00
2019-06-18 00:00:24 +02:00
2019-01-31 12:40:27 +01:00
2018-10-20 01:46:00 +01:00
2019-09-25 02:10:35 +02:00
2019-03-27 13:16:34 -07:00
2019-06-24 08:42:54 -07:00
2019-06-24 08:42:54 -07:00
2019-06-29 21:20:03 -07:00
2019-09-01 12:16:51 +03:00
2018-06-06 17:55:18 +02:00
2019-03-07 12:38:08 -08:00
2019-05-30 15:06:32 -07:00
2019-06-05 18:22:31 +03:00
2019-08-08 08:42:54 +03:00
2019-10-15 14:00:16 +02:00
2019-06-03 01:12:33 +02:00
2019-05-24 23:57:23 +02:00
2019-11-21 17:24:58 +00:00
2019-01-17 17:15:53 +03:00
2019-09-26 22:43:15 +03:00
2019-03-01 18:17:55 +01:00
2019-11-04 22:32:10 -06:00
2019-11-10 20:12:04 -08:00
2019-06-24 08:42:54 -07:00
2019-11-09 13:13:36 +02:00
2019-05-23 08:45:22 -07:00