From: Derrick Stolee <firstname.lastname@example.org> To: Jeff King <email@example.com>, Ben Humphreys <firstname.lastname@example.org> Cc: Junio C Hamano <email@example.com>, Christopher Schenk <firstname.lastname@example.org>, email@example.com Subject: Re: [PATCH 2/2] Revert "remote-curl: fall back to basic auth if Negotiate fails" Date: Wed, 19 May 2021 09:58:50 -0400 [thread overview] Message-ID: <firstname.lastname@example.org> (raw) In-Reply-To: <YKNeXq3JzxYWkxKl@coredump.intra.peff.net> On 5/18/2021 2:27 AM, Jeff King wrote: > This reverts commit 1b0d9545bb85912a16b367229d414f55d140d3be. > > That commit does fix the situation it intended to (avoiding Negotiate > even when the credentials were provided in the URL), but it creates a > more serious regression: we now never hit the conditional for "we had a > username and password, tried them, but the server still gave us a 401". > That has two bad effects: > > 1. we never call credential_reject(), and thus a bogus credential > stored by a helper will live on forever > > 2. we never return HTTP_NOAUTH, so the error message the user gets is > "The requested URL returned error: 401", instead of "Authentication > failed". > > Doing this correctly seems non-trivial, as we don't know whether the > Negotiate auth was a problem. Since this is a regression in the upcoming > v2.23.0 release (for which we're in -rc0), let's revert for now and work > on a fix separately. I think the revert is sufficiently justified here. > (Note that this isn't a pure revert; the previous commit added a test > showing the regression, so we can now flip it to expect_success). Keeping the test is excellent, because it gives us a way to confirm that a second attempt at a fix is at least as good as the first. The only thing that could improve this situation is to add a test that checks the bug that the previous version introduced, so that the next round doesn't repeat the mistake. That can be deferred because it is more important that we get this fix in time for the next release candidate. Thanks, -Stolee
next prev parent reply other threads:[~2021-05-19 13:58 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-18 3:07 Git 2.23.0-rc0 HTTP authentication failure - error message change Ben Humphreys 2021-05-18 5:50 ` Jeff King 2021-05-18 6:26 ` [PATCH 0/2] fix v2.32.0-rc0 bug with Negotiate / HTTP_NOAUTH Jeff King 2021-05-18 6:27 ` [PATCH 1/2] t5551: test http interaction with credential helpers Jeff King 2021-05-18 6:27 ` [PATCH 2/2] Revert "remote-curl: fall back to basic auth if Negotiate fails" Jeff King 2021-05-19 13:58 ` Derrick Stolee [this message] 2021-05-19 14:14 ` Jeff King 2021-05-19 14:53 ` Derrick Stolee 2021-05-19 1:12 ` [PATCH 0/2] fix v2.32.0-rc0 bug with Negotiate / HTTP_NOAUTH Junio C Hamano 2021-05-19 0:12 ` Git 2.23.0-rc0 HTTP authentication failure - error message change brian m. carlson 2021-05-19 11:49 ` Jeff King
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: [PATCH 2/2] Revert "remote-curl: fall back to basic auth if Negotiate fails"' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).