git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git 2.23.0-rc0 HTTP authentication failure - error message change

From
Ben Humphreys <behumphreys@atlassian.com>
Date
May 18, 2021, 03:07 UTC
Message-ID
<YKMvePOPqjwiXeQ+@C02WD045HTDG>
Hi,

I've run 2.32.0-rc0 through the Bitbucket Server test matrix and it picked up a change in error message that perhaps is unintentional.

On 2.31.1:
  $ git ls-remote http://notauser@localhost:7990/bitbucket/scm/project_1/rep_1.git
  Password for 'http://notauser@localhost:7990':
  fatal: Authentication failed for 'http://localhost:7990/bitbucket/scm/project_1/rep_1.git/'
and on 2.32.0-rc0:
  $ git ls-remote http://notauser@localhost:7990/bitbucket/scm/project_1/rep_1.git
  Password for 'http://notauser@localhost:7990':
  fatal: unable to access 'http://localhost:7990/bitbucket/scm/project_1/rep_1.git/': The requested URL returned error: 401

This appears to be a side effect of 1b0d9545bb8, if I revert that commit the old behavior returns. Certainly we can update our pattern matching to match the new message, but I wonder if the old message is preferred for folks who are not familiar with HTTP status codes.

Best Regards, Ben Humphreys

Next: Jeff King
Message 1 of 11 in “Git 2.23.0-rc0 HTTP authentication failure - error message change”
  1. Ben HumphreysMay 18, 2021
  2. Jeff KingMay 18, 2021
  3. 0/2 fix v2.32.0-rc0 bug with Negotiate / HTTP_NOAUTHJeff King, May 18, 2021
  4. 1/2 t5551: test http interaction with credential helpersJeff King, May 18, 2021
  5. 2/2 Revert "remote-curl: fall back to basic auth if Negotiate fails"Jeff King, May 18, 2021
  6. Derrick StoleeMay 19, 2021
  7. Jeff KingMay 19, 2021
  8. Derrick StoleeMay 19, 2021
  9. Junio C HamanoMay 19, 2021
  10. brian m. carlsonMay 19, 2021
  11. Jeff KingMay 19, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.