Bug #10552

arvados-git-httpd returns error '500' (Internal Server Error) when a request is not authorized

Added by Javier BĂ©rtoli over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Git hosting
Target version:
Start date:
11/16/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

When from I shell node I try to clone the Arvados repository from the https://git.<cluster> server with invalid credentials, the response is a 'The requested URL returned error: 500'

[root@shell x]# git -c http.sslVerify=false clone https://git.y5x3o.local/arvados.git
Cloning into 'arvados'...
fatal: unable to access 'https://git.y5x3o.local/arvados.git/': The requested URL returned error: 500

when credentials are correct, the command above succeeds.

On the git server, logs show this

Nov 15 22:47:18 localhost arvados-git-httpd: 2016/11/15 22:47:18 "127.0.0.1:37620" "" 401 "no credentials provided" "" "GET" "/arvados.git/info/refs" 
Nov 15 22:47:18 localhost arvados-git-httpd: 2016/11/15 22:47:18 "127.0.0.1:37622" "" 401 "no credentials provided" "" "GET" "/arvados.git/info/refs" 
Nov 15 22:47:18 localhost arvados-git-httpd: 2016/11/15 22:47:18 "127.0.0.1:37624" "" 500 "arvados API server error: Not logged in (401: 401 Unauthorized) returned by y5x3o.l

The arvados-git-httpd's response is misleading (it's not an unexpected internal error) and in this case it should respond with * Unauthorized (401)* instead.

History

#1 Updated by Tom Morris over 1 year ago

  • Target version set to Arvados Future Sprints

Also available in: Atom PDF