Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355112

Summary: http://git.eclipse.org/c/invalid-file-name doesn't return 404
Product: Community Reporter: Brian de Alwis <bsd>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Brian de Alwis CLA 2011-08-18 12:03:23 EDT
I like using bzr to manage access to git source repos (I have a number of tools for bzr that I really like using).  bzr has a plugin, called bzr-git, that works very well in interfacing against git repositories.  bzr-git is being confused by git.eclipse.org however as fetching an invalid file from the Git server results in a 200 rather than a 404:

$ curl -sS -I http://git.eclipse.org/c/vinalid-file-name
HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 15:58:35 GMT
Server: Apache
Expires: Thu, 18 Aug 2011 16:03:35 GMT
Last-Modified: Thu, 18 Aug 2011 15:58:35 GMT
X-NodeID: dev2
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8

Is it possible to return a 404 in this case?
Comment 1 Denis Roy CLA 2011-08-18 13:51:38 EDT
There's no setting in cgit for that, and I wouldn't expect there to be one.

cgit is a web front-end to git.  It is meant to be human-readable, not machine-readable.
Comment 2 Brian de Alwis CLA 2011-08-18 15:24:24 EDT
Thanks for the information, Denis.  I've marked this as closed.
Comment 3 Denis Roy CLA 2011-08-18 16:55:55 EDT
Thanks.