Re: Issue 3203 in reviewboard: rbt doesn't authenticate some requests
Comment #2 on issue 3203 by ethan54: rbt doesn't authenticate some requests https://code.google.com/p/reviewboard/issues/detail?id=3203 I ran into the same issue with the latest version of rbt (0.7.2). See the attached status -d log. As the user says above, PresetHTTPAuthHandler only sends the Basic authentication on the first request. By forcing it to attach the authentication to every request, I was able to get things to work. It's unclear if this breaks other server configurations. Attachments: rbtdebug.txt 3.2 KB rbt-3203.patch 721 bytes -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To post to this group, send email to reviewboard-issues@googlegroups.com. Visit this group at http://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/d/optout.
Issue 3203 in reviewboard: rbt doesn't authenticate some requests
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3203 by mra...@rapitasystems.com: rbt doesn't authenticate some requests http://code.google.com/p/reviewboard/issues/detail?id=3203 What version are you running? 1.7.20 What steps will reproduce the problem? 1. Set up a web server configured for basic authentication over HTTPS 2. Set up a ReviewBoard install configured for authentication over LDAP 3. Ensure no .reviewboardrc is set for a user 3. Attempt to query ReviewBoard using manually-specified username and password: rbt status --server https://host/reviewboard --user user --password password What is the expected output? What do you see instead? rbt outputs: CRITICAL:root:HTTP 401 Attached is rpt --debug output. Please provide any additional information below. Apache access log shows two requests, with the second lacking any authorization: 127.0.0.1 - user [23/Jan/2014:14:35:19 +] GET /reviewboard/api/ HTTP/1.1 200 15665 - RBTools/0.5.5 127.0.0.1 - - [23/Jan/2014:14:35:20 +] GET /reviewboard/api/info/ HTTP/1.1 401 8817 - RBTools/0.5.5 This seems to be something to do with PresetHTTPAuthHandler in request.py being used again before reset and so not adding auth headers. Attachments: rbt debug.txt 2.9 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To post to this group, send email to reviewboard-issues@googlegroups.com. Visit this group at http://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/groups/opt_out.