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 172648 - indexing error on files with trailing space and triggers exception on directories with trailing space
indexing error on files with trailing space and triggers exception on directo...
Status: RESOLVED DUPLICATE of bug 168975
Product: beagle
Classification: Other
Component: General
0.0.x
Other Linux
: Normal normal
: ---
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2005-04-04 20:26 UTC by Christian Hanser
Modified: 2005-04-04 20:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hanser 2005-04-04 20:26:07 UTC
Version details: 0.0.8.1
Distribution/Version: Ubuntu Hoary 5.04

a trailing space in a directory (here: "/home/chris/trailing space ") triggers
the following exception:

WARN: System.IO.DirectoryNotFoundException: Directory '/home/chris/trailing
space' not found.
in [0x001e3] (at
/home/mm/svn/project/debian/trunk/beagle/mcs-1.1.4/class/corlib/System.IO/Directory.cs:451)
System.IO.Directory:GetFileSystemEntries
(string,string,System.IO.FileAttributes,System.IO.FileAttributes)
in [0x00006] (at
/home/mm/svn/project/debian/trunk/beagle/mcs-1.1.4/class/corlib/System.IO/Directory.cs:232)
System.IO.Directory:GetDirectories (string,string)
in [0x00007] (at
/home/mm/svn/project/debian/trunk/beagle/mcs-1.1.4/class/corlib/System.IO/DirectoryInfo.cs:134)
System.IO.DirectoryInfo:GetDirectories (string)
in <0x00045> (wrapper remoting-invoke-with-check)
System.IO.DirectoryInfo:GetDirectories (string)
in [0x00006] (at
/home/mm/svn/project/debian/trunk/beagle/mcs-1.1.4/class/corlib/System.IO/DirectoryInfo.cs:129)
System.IO.DirectoryInfo:GetDirectories ()
in <0x00038> (wrapper remoting-invoke-with-check)
System.IO.DirectoryInfo:GetDirectories ()
in <0x002c8> Beagle.Daemon.FileSystemQueryable.FileSystemModel:ScanOne_Unlocked
(Beagle.Daemon.FileSystemQueryable.FileSystemModel/Directory)
in <0x000df> Beagle.Daemon.FileSystemQueryable.FileSystemModel:ScanAll ()
in <0x0000d>
Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:OnModelNeedsScan
(Beagle.Daemon.FileSystemQueryable.FileSystemModel)
in <0x0003f> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_FileSystemModel
(Beagle.Daemon.FileSystemQueryable.FileSystemModel)
in <0x003ef> Beagle.Daemon.FileSystemQueryable.FileSystemModel:AddRoot (string)
in <0x00035> Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:StartWorker ()
in <0x00037> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in <0x00018> Beagle.Util.ExceptionHandlingThread:ThreadStarted ()


and a trailing space in a filename (here: "/home/chris/trailing space.txt ")
causes the following error:

ERROR: No such file: /home/chris/trailing space.txt
WARN: Caught exception in DoTaskReal
WARN:         Tag: Crawling /home/chris
WARN:     Creator:
WARN: Description:
WARN:    Priority: Generator (0)
WARN: System.IO.IOException: /home/chris/trailing space.txt
in <0x0007a> Beagle.Util.FileSystem:GetLastWriteTime (string)
in <0x00078> Beagle.Daemon.LuceneQueryable:CacheIndexableInfo (Beagle.Indexable)
in <0x0018d> LuceneTask:DoTaskReal ()
in <0x000a4> Task:DoTask ()

beagled doesn't recover from this error and after some normal looking lines of
output it starts printing the following in loop:

DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Helper Size: VmRSS=17.0 MB, size=1.60, 15.0%
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Helper Size: VmRSS=17.0 MB, size=1.60, 15.1%
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
DEBUG: Close on FileSystemIndex
Comment 1 Daniel Drake 2005-04-04 20:56:15 UTC

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