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

Bug 349333

Summary: [git] git-status.html not working in self-hosting mode
Product: [ECD] Orion Reporter: Boris Bokowski <bokowski>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, simon_kaegi, Szymon.Brandys, tomasz.zarna, ultramegatron
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Boris Bokowski CLA 2011-06-14 11:08:34 EDT
I am running the latest code on a subdomain of orion.eclipse.org (http://binner.orion.eclipse.org:8080). I am getting errors in the console for the git-status.html page:

Error: Unable to load http://localhost:8080/gitapi/commit/HEAD..3690e203c05fcea0eb5974709cbedc04da813f53/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
HTTP status code: 0
gitClient.js (line 714)
Error: Unable to load http://localhost:8080/gitapi/commit/HEAD..3690e203c05fcea0eb5974709cbedc04da813f53/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
Error: Unable to load http://localhost:8080/gitapi/commit/HEAD..3690e203c05fcea0eb5974709cbedc04da813f53/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
Error: Unable to load http://localhost:8080/gitapi/commit/HEAD..3690e203c05fcea0eb5974709cbedc04da813f53/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
GET http://binner.orion.eclipse.org:8080/gitapi/remote/origin/master/file/x/
	
200 OK
		50ms	
xhr.js (line 880)
POST http://binner.orion.eclipse.org:8080/gitapi/commit/3690e203c05fcea0eb5974709cbedc04da813f53/file/x/
	
200 OK
		50ms	
xhr.js (line 880)
Error: Unable to load http://localhost:8080/gitapi/commit/3690e203c05fcea0eb5974709cbedc04da813f53..HEAD/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
HTTP status code: 0
gitClient.js (line 714)
Error: Unable to load http://localhost:8080/gitapi/commit/3690e203c05fcea0eb5974709cbedc04da813f53..HEAD/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
Error: Unable to load http://localhost:8080/gitapi/commit/3690e203c05fcea0eb5974709cbedc04da813f53..HEAD/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
xhr.js (line 774)
Error: Unable to load http://localhost:8080/gitapi/commit/3690e203c05fcea0eb5974709cbedc04da813f53..HEAD/file/x/ status:0
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
Comment 1 Simon Kaegi CLA 2011-06-14 14:38:52 EDT
The problem here is that we need to proxy the Location: headers. ++fun
Comment 2 Simon Kaegi CLA 2011-06-14 16:36:22 EDT
Fixed in HEAD. Reviewed by two Johns and Mark.