initial plea for considering credentials upon 404 of /config
This commit is contained in:
parent
a39b2beda7
commit
cccc05ff30
1 changed files with 17 additions and 0 deletions
17
doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn
Normal file
17
doc/bugs/be_like_git_and_ask_for_credentials_if_404.mdwn
Normal file
|
@ -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]]
|
Loading…
Reference in a new issue