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 354263 - nautilus does not display files named like "2006 tmpfile" via ftp.
nautilus does not display files named like "2006 tmpfile" via ftp.
Status: RESOLVED DUPLICATE of bug 350052
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
cvs (head)
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-04 12:30 UTC by Ramprakash Jelari
Modified: 2006-10-02 22:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
"2005 folder" "2006 folder1" not shown correctly. (73.47 KB, image/png)
2006-09-05 15:47 UTC, Ramprakash Jelari
Details

Description Ramprakash Jelari 2006-09-04 12:30:29 UTC
Steps to Reproduce:
-------------------

1. Launch Nautilus.
2. do ftp to any machine. 
   ftp://
3. Try to display the file/directory named like "2006 tmpfile".
4. Nautilus displays only tmpfile as the file name, the 2006 is considered as 
   the year of the file creation, and not as part of the file name itself. 

Though, part of this bug is fixed in the bug #163671, it fails to 
parse the file like "2006 + space + anything".

Let us consider the following:

drwxrwxr-x    2 test test  4096 Sep  4 17:42 2006 tmpfile

the vfs_parse_filedate() in libgnomevfs/gnome-vfs-parse-ls.c parses this row like:

First it parses '17:42' as a time stamp. Then it looks for 2006, finds it as a four digit number. To make sure it is a file name or the year, it looks if 2006 is a last column of this row. To find if it is the last column, it looks for the 
'\n' or '\r' after 2006. 

In the given example, it is neighter '\n' nor '\r' but a space. Hence it does not consider 2006 as a part of file name but as a year.
Hence the bug.
Comment 1 Alexander Larsson 2006-09-04 13:40:33 UTC
What version? A bug like this was fixed in 2.14.
Comment 2 Ramprakash Jelari 2006-09-05 15:47:58 UTC
Created attachment 72256 [details]
"2005 folder" "2006 folder1" not shown correctly.
Comment 3 Ramprakash Jelari 2006-09-05 15:54:18 UTC
I downloaded gnome-vfs version 2.15.1 and built it on my machine and i still see the problem. Please see the screenshot attached.

There was one bug fixed previously which resolved the issue where filenames resemble date or time (#163671, "ftp errors with directories named with numbers")

I created files/folders with the names for example - "2005 folder",  "2006 folder1" (4 digits + space + anything)
and nautilus does  not show them correctly.

Please note that the first 4 digits in the filename have to be >1900 and <3000. Had a look at the code and found that numbers not falling in this range are not considered as part of the date by nautilus.
Comment 4 Pascal Terjan 2006-10-02 22:19:08 UTC

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