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 168975 - Exception on directory ending in whitespace
Exception on directory ending in whitespace
Status: RESOLVED FIXED
Product: beagle
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: Upstream
Assigned To: Beagle Bugs
Beagle Bugs
: 172024 172648 300988 302889 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-02 14:16 UTC by Lukas Lipka
Modified: 2005-05-03 18:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lukas Lipka 2005-03-02 14:16:30 UTC
FilesystemQueryable fails to start if a directory ending with a space exitsts.
Somthing like "/home/lukas/gooey ". Here is the backtrace.

WARN: Exception caught while executing
Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:Void StartWorker()
WARN: System.IO.IOException: /home/lukas/gooey
in <0x000d5> Beagle.Util.Inotify:Watch
(string,Beagle.Util.Inotify/EventType,Beagle.Util.Inotify/EventType)
in <0x00010> Beagle.Util.Inotify:Watch (string,Beagle.Util.Inotify/EventType)
in <0x0001b> Beagle.Daemon.FileSystemQueryable.InotifyBackend:WatchDirectories
(string)
in <0x000c0> Beagle.Daemon.FileSystemQueryable.FileSystemModel:ScanOne_Unlocked
(Beagle.Daemon.FileSystemQueryable.FileSystemModel/Directory)
in <0x0011a> Beagle.Daemon.FileSystemQueryable.FileSystemModel:ScanAll ()
in <0x0000d>
Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:OnModelNeedsScan
(Beagle.Daemon.FileSystemQueryable.FileSystemModel)
in <0x00043> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_FileSystemModel
(Beagle.Daemon.FileSystemQueryable.FileSystemModel)
in <0x003bd> Beagle.Daemon.FileSystemQueryable.FileSystemModel:AddRoot (string)
in <0x0015c> Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:StartWorker ()
in <0x0003d> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in <0x00018> Beagle.Util.ExceptionHandlingThread:ThreadStarted ()
Comment 1 Lukas Lipka 2005-03-02 14:27:40 UTC
This happes during setting the watches on the directories.
Beagle.Daemon.FileSystemQueryable.InotifyBackend:WatchDirectories(string) is
called with "/home/lukas/gooey" instead of "/home/lukas/gooey "

Comment 2 Lukas Lipka 2005-03-02 14:44:16 UTC
After a simple test case I figured that DirectoryInfo.GetDirectories () returns
a DirectoryInfo.Name called "foobar" but the correct name is "foobar " with a
space at the end. So maybe this is considered a mono bug?
Comment 3 Lukas Lipka 2005-03-02 14:48:26 UTC
Then again a Directory.Exists ("/home/lukas/foobar") returns False while
Directory.Exists ("/home/lukas/foobar ") returns True.
Comment 4 Joe Shaw 2005-03-02 20:30:40 UTC
See http://bugzilla.ximian.com/show_bug.cgi?id=65727
Comment 5 Jon Trowbridge 2005-03-29 21:03:22 UTC
*** Bug 172024 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Drake 2005-04-04 20:56:16 UTC
*** Bug 172648 has been marked as a duplicate of this bug. ***
Comment 7 Jon Trowbridge 2005-04-14 11:47:04 UTC
This has been fixed in mono SVN.  See also:
http://bugzilla.ximian.com/show_bug.cgi?id=53173
Comment 8 Christopher Orr 2005-04-17 18:52:54 UTC
*** Bug 300988 has been marked as a duplicate of this bug. ***
Comment 9 Lukas Lipka 2005-05-03 18:56:49 UTC
*** Bug 302889 has been marked as a duplicate of this bug. ***