Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370506 - Can't pull or fetch
Summary: Can't pull or fetch
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.4   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.4 RC1   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 18:01 EST by Mark Macdonald CLA
Modified: 2012-02-03 08:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Macdonald CLA 2012-02-02 18:01:56 EST
using orion.eclipse.org (I20120201-2230)

1. Go to the git-repository page for my clone of orion.client.core.
2. Click "Pull" beside the repo (or "Fetch" beside the remote).
3. Nothing happens in the UI. The Network Log shows an error 400 is returned by the server.

This only happens in Chrome. Firefox works OK. I tried clearing my cache/localStorage/refreshing plugins and it didn't help.
Comment 1 Mark Macdonald CLA 2012-02-02 18:14:08 EST
Here is the HTTP talk that happens when I try to pull.

-- Request --
POST /gitapi/clone/file/G/ HTTP/1.1
Host: orion.eclipse.org
Connection: keep-alive
Content-Length: 136
Origin: http://orion.eclipse.org
Orion-Version: 1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11
Content-Type: application/x-www-form-urlencoded
Accept: */*
Referer: http://orion.eclipse.org/git/git-repository.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=9zz3a7q0dxe9u1i1xc8kcruv

{"Pull":"true","Force":false,"GitSshUsername":"","GitSshPassword":"","GitSshKnownHost":null,"GitSshPrivateKey":"","GitSshPassphrase":""}:

-- Response --
HTTP/1.1 400 Bad Request
Date: Thu, 02 Feb 2012 23:00:44 GMT
Server: Jetty(8.1.0.RC4)
Content-Type: application/json; charset=UTF-8
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 468
Connection: close

{"JsonData":{"Scheme":"ssh","HostKey":"AAAAB3NzaC1yc2EAAAABIwAAAIEAuKF3Ly38celFqKvVs1nAikEnNHxfW/nvg5mE/nOJQJNWMcNX/yxsr3pxfYWW5EVVDQ+SYUtpJjP36m04jaai/nHBuJTa4diubdzYM/wA4ZMf0zef2LqY/+aE6o3TGbKR3N181pXRBfKeOm92Vig4pLINoV3Im0ebblz6HDDrNtE=","Host":"dev.eclipse.org","KeyType":"ssh-rsa","User":"mmacdonald","HumanishName":"org.eclipse.orion.client","HostFingerprint":"68:d8:ed:a9:c2:d8:7b:b8:90:56:0c:9e:d9:8a:17:6c","Url":"ssh://mmacdonald@dev.eclipse.org/gitroot/orion/org.eclipse.orion.client.git"},"HttpCode":400,"DetailedMessage":"The authenticity of host dev.eclipse.org can't be established","Message":"The authenticity of host dev.eclipse.org can't be established","Severity":"Error","Code":0}
Comment 2 Mark Macdonald CLA 2012-02-02 18:15:02 EST
After I cleared my localStorage and cookies in Firefox, I started to observe the same problem.
Comment 3 Malgorzata Janczarska CLA 2012-02-03 08:13:00 EST
Fixed. After some reorganization I've made recently in gitClient those responses wheren't correctly handled if Fetch or Push did not switch to task and in your case I see that response was quick enough not to switch to task.