Actions
Bug #6943
closed[Git hosting] arvados-git-httpd should return 4xx, not 5xx, for authentication errors
Status:
Duplicate
Priority:
Normal
Assigned To:
-
Category:
Git hosting
Target version:
-
Story points:
0.5
Description
Currently, as verified by tests, arvados-git-httpd returns 500 when the servers are all working perfectly but the client used an invalid token.
Existing test case:
func (s *IntegrationSuite) TestInvalidToken(c *check.C) { for _, repo := range []string{"active/foo.git", "active/foo/.git"} { err := s.runGit(c, "no-such-token-in-the-system", "fetch", repo) c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`) } }
This response should have been 401, not 500.
Actions