After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682716 - Connecting using IPv6 using passive mode, data connection is not established
Connecting using IPv6 using passive mode, data connection is not established
Status: RESOLVED DUPLICATE of bug 683165
Product: gftp
Classification: Other
Component: general
unspecified
Other Linux
: Normal major
: 2.0.19
Assigned To: Alexander Koeppe
Brian Masney
: 634399 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-08-26 09:58 UTC by Alexander Koeppe
Modified: 2012-09-01 17:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix that handles data connections in IPv6 FTP sessions correctly (1.88 KB, patch)
2012-08-26 09:58 UTC, Alexander Koeppe
none Details | Review

Description Alexander Koeppe 2012-08-26 09:58:38 UTC
Created attachment 222452 [details] [review]
Fix that handles data connections in IPv6 FTP sessions correctly

When connecting to a IPv6 FTP server, any data connection in passive mode is not possible. Even the initial GET_CWD is not working. Below you find the client-server chat of the FTP session. After the LIST -L instruction nothing happens.
On the server you can find a new listening socket on the port in the Extended Passive Mode message.
                                       
220 ProFTPD Server (Debian) [2a01:xxxx:121:xxxx:0:58c6:901e:1]
USER juergen

331 Password required for alex
PASS xxxx
230 User alex logged in
SYST

215 UNIX Type: L8
TYPE I

200 Type set to I
PWD

257 "/" is the current directory
Lade Verzeichnisliste / von der Gegenstelle (LC_TIME=de_DE.UTF-8)
EPSV

229 Entering Extended Passive Mode (|||48620|)
LIST -L

This behaviour is due to incorrect handling of the different Address Families when creating new sockets for the data connections.

The attached patch fixes the issue and dataconnections are as well possible for IPv6 FTP sessions.

The patch has to be appied appying the command `patch -p2 < /path/to/gftp-ipv6-dataconn.patch` in diretory "gftp-2.0.19/lib".
Comment 1 Alexander Koeppe 2012-08-26 10:03:09 UTC
By the way. The latest version 2.0.19, which I used for fixing, was not available in Bugzilla tool, thatswhy I set it to "unspecified".
Comment 2 Alexander Koeppe 2012-09-01 12:20:46 UTC
*** Bug 634399 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Koeppe 2012-09-01 17:25:38 UTC

*** This bug has been marked as a duplicate of bug 683165 ***