Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381925 - net-ftp/yafc-1.1.2 debug and ls does not work
Summary: net-ftp/yafc-1.1.2 debug and ls does not work
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Carles Pagès
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-09-05 11:22 UTC by Zentoo
Modified: 2013-08-16 08:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
yafc debug for a connection and ls command on a ftp that works with yafc 1.1.1 and doesn't work with yafc 1.1.2 (yafc-1.1.2-ls-regression.log,3.62 KB, text/plain)
2011-09-05 11:22 UTC, Zentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zentoo 2011-09-05 11:22:57 UTC
Created attachment 285615 [details]
yafc debug for a connection and ls command on a ftp that works with yafc 1.1.1 and doesn't work with yafc 1.1.2

We use here a lot yafc and since the version 1.1.2 there are many ftp sites that doesn't work as expected: on theses FTP, the "ls" command return nothing at all even if there is some directory or files. I have downgraded to 1.1.1 (ebuild rename and create manifest) and that's works.

So there is a regression somewhere between yafc-1.1.1 and yafc 1.1.2.

For info, the problem happens when logging on a FTP of type: Pure-FTPd [privsep] [TLS] in passive mode.

I've logged debug info for yafc on a good attempt with yafc 1.1.1 et a bad attempt with yafc 1.1.2. There is a difference after have typed "ls" in yafc:

-8<--------yafc-1.1.2-------8<-  (ls failed)
yafc XXXXXX:/> ls
--> [upload.xxxxx.net] PASV
<-- [upload.xxxxx.net] 227 Entering Passive Mode (@@,@@,184,227,165,77)
--> [upload.xxxxx.net] MLSD -a
<-- [upload.xxxxx.net] 150 Accepted data connection
<-- [upload.xxxxx.net] 226-Options: -l 
<-- [upload.xxxxx.net] 226 0 matches total

-8<--------yafc-1.1.1-------8<-  (ls ok)
--> [upload.xxxxx.net] PASV
<-- [upload.xxxxx.net] 227 Entering Passive Mode (@@,@@,184,227,182,252)
--> [upload.xxxxx.net] MLSD
<-- [upload.xxxxx.net] 150 Accepted data connection
<-- [upload.xxxxx.net] 226-Options: -l 
<-- [upload.xxxxx.net] 226 4 matches total
dir1/      dir2/      dir3/  dir4/


The problem could be the "MLSD" / "MLSD -a" difference that yafc send to the FTP server.

I could manage some test if you need it.
Comment 1 Zentoo 2011-09-05 11:25:25 UTC
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.3-gentoo x86_64)
=================================================================
System uname: Linux-3.0.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 27 Aug 2011 15:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.1.4, 3.2-r2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo zentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /gentoo/config /lib/udev/rules.d /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="assume-digests binpkg-logs buildsyspkg compress-build-logs distlocks ebuild-locks fail-clean fixlafiles fixpackages news noinfo parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.leaseweb.com/gentoo/"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j9"
PKGDIR="/gentoo/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="pbzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=""
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gentoo/tmp"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/overlays/zentoo"
SYNC="rsync://rsync2.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim aio alsa amd64 branding bzip2 cairo caps ccache cdda cdparanoia cdr clamav cli consolekit cpdflib cracklib crypt curlwrappers cxx dbus dio dlloader dts dvd dvdr dvdread emboss encode exif fam fftw firefox flac ftp gdu gif gpm gtk iconv icq imap ipv6 jabber jce jpeg jpeg2k lcms libnotify lm_sensors mad maildir mailwrapper mbox memlimit mime mmx mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nocd nptl nptlonly nvidia offensive ogg opengl openmp pam pango pcre pdf png policykit posix ppds pppd qt3support qt4 readline sasl session sharedmem smp sndfile sockets socks5 sse sse2 sse3 sse4 ssl startup-notification svg sysfs szip tcpd threads tiff truetype udev unicode usb userlocales utf8 v4l v4l2 vdpau videos vorbis x264 xcb xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="interface df irq load memory swap syslog rrdtool contextswitch cpu cpufreq disk filecount fscache hddtemp logfile network processes sensors tcpconns thermal uptime vmem" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia nouveau apm" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MAS
Comment 2 Zentoo 2011-09-05 11:26:48 UTC
Confirmed on amd64 and ~amd64 arch.
Comment 3 Agostino Sarubbo gentoo-dev 2011-09-05 11:30:10 UTC
Please do not CC arch teams next time.
Comment 4 Zentoo 2011-09-05 11:32:19 UTC
(In reply to comment #3)
> Please do not CC arch teams next time.

I notice it.
Sorry for the noise ^^
Comment 5 Carles Pagès 2011-09-19 21:42:57 UTC
Hi,

As you seem to be comfortable tweaking ebuilds, would you mind trying this tarball:
https://github.com/downloads/cpages/yafc/yafc-1.1.2c.tar.bz2

Somehow the version in the ebuild was not the revision I thought. Sorry for that.

I installed a local pure-ftpd to test and it seems to work. Please tell me how it goes.
Comment 6 Zentoo 2011-09-20 19:38:06 UTC
I've tested the version from your tarball (https://github.com/downloads/cpages/yafc/yafc-1.1.2c.tar.bz2) and that's works perfectly ;)

So i think we are good for a net-ftp/yafc-1.1.2-r1. :)
Comment 7 Sergey Popov gentoo-dev 2013-08-16 08:21:13 UTC
Please, check with net-ftp/yafc-1.2.5, reopen if issue still happens with it