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 524880 - filename with 43 or more chars are not shown
filename with 43 or more chars are not shown
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: ftp backend
0.2.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 523902 528346 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-28 23:40 UTC by Basilio Kublik
Modified: 2008-05-07 15:14 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Basilio Kublik 2008-03-28 23:40:16 UTC
this bug was reported at: https://bugs.launchpad.net/ubuntu/+bug/208524

"I uploaded file to my freebox hard drive (it is a french set top box)
But the file didn't display in nautilus while it does well in gftp or another ftp client.

With some tests i discovered that the file is not displayed if its name is longer than 42 characters.

It is really easy to reproduce ... just open an ftp and rename a file in it to increase its length and the file will disappear from nautilus."
Comment 1 Basilio Kublik 2008-03-28 23:43:09 UTC
I was able to reproduce this only using the ftp backend, the sftp doesn't seems affected, a screenshot demonstrating this is attached to the launchpad report.

- At the bottom left, a console with the first line containing 0-9 digits until complete 42 chars, and the following lines some files with names starting from 41, 42, 43 and 77 characters, without considering the file extension as part of the name, only the first 3 first files are displayed using gvfs ftp backend.
- The bottom right console shows a ftp client listing the content of the directory containing the test files, displaying every file.
- At the top, nautilus using the gvfs ftp backend listing just the 3 files which doesn't exceed the 43 chars barrier.
Comment 2 Basilio Kublik 2008-03-28 23:51:58 UTC
i meant to say "40, 41, 42, 43 and 77 characters" at the first point and "42 chars barrier" at the last point. sorry about those typos and possibly the others i don't detect yet
Comment 3 Fabien Chaillou 2008-04-16 09:19:32 UTC
I was the one that reported it in launchpad.
As a matter of fact it is a duplicate for launchpad bug #218010 which is associated with gnome bug #528346.

Can you make this one a duplicate of the previous bug ?

Thank you for your help

Fabien
Comment 4 Baptiste Mille-Mathias 2008-04-16 09:38:03 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 528346 ***
Comment 5 Baptiste Mille-Mathias 2008-04-16 11:40:34 UTC
*** Bug 528346 has been marked as a duplicate of this bug. ***
Comment 6 Baptiste Mille-Mathias 2008-04-16 11:42:54 UTC
sorry for the mess,

(From comment #1 in 528346)
> This bug can be tested on this server :
> 
> ftp://leservicetechnique.com/
> username : "username"
> password : "nothing"
Comment 7 Oxmosys 2008-04-16 12:57:35 UTC
Why does bug 528346 is a duplicate of this one? Finally the real problem has been confirmed to be >6 spaces in file names and not >42 characters. I believe that we should set back this bug as a duplicate or at least import the title and description of the other bug report.
Comment 8 Sebastien Bacher 2008-04-16 13:25:59 UTC
because this one was opened first and you should have commented there and updated the title rather than opened a duplicate
Comment 9 Oxmosys 2008-04-16 14:47:50 UTC
Thanks. Can someone import the title and description from bug 528346? The actual title and description of this bug is inaccurate. Sorry for the noise.

Steps to reproduce:
1. Have a FTP server.
2. At the root of the FTP server, create a file called "d d d d d d d d.mp3"
with some FTP client (Filezilla here).
3. Open the FTP server through nautilus.

This bug can be tested on this server :

ftp://leservicetechnique.com/
username : "username"
password : "nothing"
Comment 10 Sebastien Bacher 2008-04-21 22:00:45 UTC
The bug is due to ParseFTPList.c returning an incorrect result.fe_fnlen counting the trailing \r in some cases which makes ftp_filename_construct() no consider the filename as correct. Benjamin suggested removing the trailing \r in do_enumerate_directory() on IRC, the change works correctly so I commited to gnome-2-22 and trunk now

	* daemon/gvfsbackendftp.c: (do_enumerate_directory): 
	remove trailing '\r', that workarounds a parser issue causing 
	some filenames to not be listed (#524880)

Comment 11 Frederic Crozat 2008-05-07 15:14:13 UTC
*** Bug 523902 has been marked as a duplicate of this bug. ***