Project

General

Profile

Actions

Bug #10552

open

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

Added by Javier Bértoli over 7 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Git hosting
Target version:
Story points:
-
Release:
Release relationship:
Auto

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.

Actions #1

Updated by Tom Morris over 6 years ago

  • Target version set to Arvados Future Sprints
Actions #2

Updated by Ward Vandewege almost 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #3

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #4

Updated by Peter Amstutz about 2 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF