Bug 341832 - FTP transport push fails with error (fetch probably also)
Summary: FTP transport push fails with error (fetch probably also)
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.11   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-04-04 14:56 EDT by Michael CLA
Modified: 2013-09-28 11:43 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael CLA 2011-04-04 14:56:27 EDT
Build Identifier: 20110301-1815

I create a new project, share it (right click project, Team -> Share Project -> Git), add files, commit, then i push (right click project, Team -> Remote -> Push..) to a remote repository:

Host: my machine ip or domain name, absolutely reachable via ftp
Repository path "/test.git" (not influent however)
Protocol: Ftp
Port: empty
Authentication: providing user and password or not doesn't change the behavior.
Click Next

Error dialog:

Transport Error

Cannot get remote repository refs.
Reason:
sun.net.www.protocol.ftp.FtpURLConnection cannot be cast to java.net.HttpURLConnection



Reproducible: Always
Comment 1 Michael CLA 2011-04-04 14:58:58 EDT
Egit 0.11.3
Comment 2 Florian Lentsch CLA 2011-05-09 14:02:34 EDT
Also happening on Ubuntu natty 64bit using java OpenJDK 1.6.0_22 (also tried java HotSpot 64-Bit 1.6.0_24) with EGit 0.12.1

Happens when clicking on "Next" as described by Michael and also when directly clicking on "Finish"

Using the "git push" command manually from bash appears to work fine with the same ftp server...
Comment 3 Florian Lentsch CLA 2011-05-09 14:53:04 EDT
I take back what I said about it working from command line - Of course I have the same issue as described here:

http://stackoverflow.com/questions/4315413/git-fails-to-push-to-ftp-server

One of the workarounds described there would work for EGit as well (for those who are on linux):
Use webdrive/netdrive (and curlftpfs) [or gvfs] to mount the ftp directory locally.

I haven't tried that though...
Comment 4 Jérôme de Vivie CLA 2012-07-26 04:48:08 EDT
I've got the same error when i do a clone from ftp. This errors occurs w/ both Egit 2.0 and Egit 2.1.0.201207191423.

With clone, there is a workaround: after setting protocol to "ftp", i remove the string "ftp:///" from URI to make it works.
Comment 5 Robin Stocker CLA 2013-09-28 11:43:16 EDT
This is a problem in JGit, moving there.