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

Bug 344505

Summary: [client] Errors on git log page when there is no remote
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon, tomasz.zarna
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-05-02 15:58:27 EDT
0.2 M7

- Start up m7 or go to orionhub.org.
- Create a new top level folder
- Go to the "Git log" page for this folder

You will see a pile of errors in the console:

Error: Unable to load [object Object] status:404
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
dojo.j...ssed.js (line 10391)
HTTP status code: 404
git-log.js (line 144)
Error: Unable to load [object Object] status:404
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
dojo.j...ssed.js (line 10391)
Error: Unable to load [object Object] status:404
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
dojo.j...ssed.js (line 10391)
Error: Unable to load [object Object] status:404
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status);
dojo.j...ssed.js (line 10391)
Error: Unable to load [object Object] status:404
var err = new Error("Unable to load...oArgs.url + " status:" + xhr.status); 

Now click on the "Push" button. Note that this repository has no remote, so pushing doesn't make sense. If you attempt to push, more errors appear in the console but the user isn't told that it didn't work. If I click "Push" in this case it should immediately tell me I can't push because there is no remote.

TypeError: byId(node) is null
byId(node).innerHTML = "";
dojo.j...ssed.js (line 6842)
TypeError: byId(node) is null
byId(node).innerHTML = "";
dojo.j...ssed.js (line 6842)
HTTP status code: 200
gitClient.js (line 413)
SyntaxError: syntax error
return _d.fromJson(xhr.responseText || null);
dojo.j...ssed.js (line 9864)
SyntaxError: syntax error
return _d.fromJson(xhr.responseText || null);
dojo.j...ssed.js (line 9864)
SyntaxError: syntax error
return _d.fromJson(xhr.responseText || null);
dojo.j...ssed.js (line 9864)
SyntaxError: syntax error
return _d.fromJson(xhr.responseText || null);
Comment 1 John Arthorne CLA 2011-07-21 15:46:43 EDT
From testing with 0.2 RC3, this appears to be fixed.