Skip to content

fix v2.32.0-rc0 bug with Negotiate / HTTP_NOAUTH

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t5551: test http interaction with credential helperst/t5551-http-fetch-smart.sh+41 -00 replies
2/2Revert "remote-curl: fall back to basic auth if Negotiate fails"http.c t/t5551-http-fetch-smart.sh+8 -93 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix v2.32.0-rc0 bug with Negotiate / HTTP_NOAUTH
Quoted 6 lines · Jeff King

So perhaps somebody can come up with something clever, but I suspect we may need to just revert this for the v2.32 release, and re-break the case that 1b0d9545bb8 was trying to solve.

We probably should beef up the tests around http's credential-rejection, too, to catch this regression.

Here are some patches. The first one adds the tests, and I think is an obvious improvement.

The second one does the revert. I'd be quite happy if somebody wants to figure out how to fix it in a way that addresses the original problem, and then we can replace that. But in the meantime, I think it makes sense to prepare the revert, as we wouldn't want to release v2.32.0 with the bug.

[1/2]: t5551: test http interaction with credential helpers [2/2]: Revert "remote-curl: fall back to basic auth if Negotiate fails"

 http.c                      | 15 +++++++-------
 t/t5551-http-fetch-smart.sh | 41 +++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 8 deletions(-)

-Peff