From cccc05ff3013906e24289cdfdc99b5f095c28b6c Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Thu, 21 Jan 2021 03:26:09 +0000 Subject: [PATCH] initial plea for considering credentials upon 404 of /config --- ...like_git_and_ask_for_credentials_if_404.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn diff --git a/doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn b/doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn new file mode 100644 index 0000000000..2ceffa6c1b --- /dev/null +++ b/doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn @@ -0,0 +1,17 @@ +### Please describe the problem. + +This is a continuation to the [prior report/discussion](https://git-annex.branchable.com/bugs/leaks_git_config_error_message_upon_inability_to_read_downloaded___34__config__34___file/#comment-424548e59fc41618ffeeb65f418694b3) to facilitate access to private repositories on public hosting portals. + +If we place more odd/custom behavior of gitlab etc installations which forward to login screen (thus no 401 or 404 response) upon attempt to access something which might be within private rep, aside, the situation with github and gogs (github clone) which powers gin (which I had [mentioned](https://git-annex.branchable.com/bugs/leaks_git_config_error_message_upon_inability_to_read_downloaded___34__config__34___file/#comment-ec2193d97bb19945ad74cee13f747b35) in that prior discussion)) is different: they return 404 response. And I think (didn't check git code, but just based on its behavior) `git` is then asking for credentials as the "next way to try". I think git-annex should do the same -- if 404 received, ask `git credential` to fill for that domain (as it would do now in case of 401). + +### What steps will reproduce the problem? + +Try to clone and get data from a private repository on [https://gin.g-node.org/](https://gin.g-node.org/) (repo could be created, or let me know and I would create one, but you would still need to register there). I am not yet 100% certain that upon authentication you would be able to fetch that `/config` (haven't tried). Sattelite issue/discussion I just initiated on gin is [here](https://github.com/G-Node/gogs/issues/111) + +### What version of git-annex are you using? On what operating system? + +8.20201127+git54-ga1b227171-1~ndall+1 + + +[[!meta author=yoh]] +[[!tag projects/dandi]]