Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355112 - http://git.eclipse.org/c/invalid-file-name doesn't return 404
Summary: http://git.eclipse.org/c/invalid-file-name doesn't return 404
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Git (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 12:03 EDT by Brian de Alwis CLA
Modified: 2011-08-18 16:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.