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

Bug 366650

Summary: orionhub.org git-config page fails: cloneDetails panel input validation bug
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description John J. Barton CLA 2011-12-13 18:14:15 EST
get stack: function getter() { [native code] }
message: "Unable to load ../gitapi/clone/workspace/GC status:500"
responseText: "{"HttpCode":500,"DetailedMessage":"Repository config file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config invalid Cannot read file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config","Message":"Failed to handle /git/clone request for workspace/GC","Severity":"Error","Code":0}"
set stack: function setter() { [native code] }
status: 500
type: undefined
__proto__: ErrorPrototype
Comment 1 John J. Barton CLA 2011-12-15 10:58:19 EST
Some of the errors I get from 
http://orionhub.org/git/git-clone.html#/workspace/GC
---------
message: "Unable to load http://orionhub.org/prefs/user/plugins status:404"
responseText: "{"HttpCode":404,"Message":"No preferences found for path /user/plugins","Severity":"Error","Code":0}"
----------
message: "Unable to load ../gitapi/clone/workspace/GC status:500"
responseText: "{"HttpCode":500,"DetailedMessage":"Repository config file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config invalid Cannot read file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config","Message":"Failed to handle /git/clone request for workspace/GC","Severity":"Error","Code":0}"
--------
message: "Unable to load ../gitapi/clone/workspace/GC status:500"
responseText: "{"HttpCode":500,"DetailedMessage":"Repository config file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config invalid Cannot read file /home/admin/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ/.git/config","Message":"Failed to handle /git/clone request for workspace/GC","Severity":"Error","Code":0}"

Two copies of Chrome and one of Firefox give same result

Setting "disable network cache" in WebInspector, localStorage.clear(), and Ctrl_Shift_R did not fix this.
Comment 2 John Arthorne CLA 2011-12-15 11:25:43 EST
Your Git repository is corrupt. Even command line git fails here. This could be a JGit but since Orion doesn't ever touch these files directly.

admin@orionhub:~/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ> git status
fatal: bad config file line 15 in .git/config

admin@orionhub:~/current/eclipse/serverworkspace/jo/johnjbarton@johnjbarton.com/PQ> cat .git/config
[core]
        repositoryformatversion = 0
        filemode = false
        logallrefupdates = true
        autocrlf = false
[remote "origin"]
        url = https://johnjbarton@github.com/johnjbarton/crx2app.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
[user]
        name = johnjbarton
        email =
        email\ = johnjbarton@johnjbarton.com
Comment 3 John Arthorne CLA 2011-12-15 11:26:40 EST
I manually fixed the typo in your git config file. Can you try again?
Comment 4 John J. Barton CLA 2011-12-15 11:58:03 EST
(In reply to comment #3)
> I manually fixed the typo in your git config file. Can you try again?

Yes! That's it.

So the bug is in the Repository Configuration slide out on the RHS of git-clone. I remember having to set my user.name and user.email (for the millionth time) in that UI  for the crx2app project when I cloned it.
Comment 5 John Arthorne CLA 2015-05-05 14:45:21 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html