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 171520 - Invalid Directory Name Causes Exception
Invalid Directory Name Causes Exception
Status: RESOLVED NOTGNOME
Product: beagle
Classification: Other
Component: General
0.0.x
Other All
: Normal normal
: ---
Assigned To: Daniel Drake
Daniel Drake
Depends on:
Blocks:
 
 
Reported: 2005-03-24 19:18 UTC by Chris Southern
Modified: 2005-03-31 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Southern 2005-03-24 19:18:35 UTC
Please describe the problem:
When you have an bad directory name (ie with a \\ in it) the FileSystemIndex
throws exception.

System.ArgumentException: UNC pass should be of the form \\server\share

I know you should not have directories with \\ in their name, but just so
happend did.  But still should catch it.


Steps to reproduce:
1. Make a directory like (/home/usern/files/\\baddirectory/
2. Start beagled --allow-backend file --fg --debug


Actual results:
Thows an ArgumentException in System.IO.Path:GetFullPath

Expected results:


Does this happen every time?
Yes

Other information:
$ beagled --fg --debug
INFO: Starting Beagle Daemon (version 0.0.8)
DEBUG: Command Line: /usr/lib/beagle/BeagleDaemon.exe --debug --fg
DEBUG: Initializing D-BUS
DEBUG: Acquiring com.novell.Beagle D-BUS service
DEBUG: Found index helper at /usr/lib/beagle/beagled-index-helper
DEBUG: Launching helper process!
DEBUG: D-BUS registered obj=Beagle.IndexHelper.RemoteIndexerImpl
path=/com/novell/BeagleIndexHelper/Factory owner=(none)
DEBUG: Helper Size: VmRSS=10.4 MB, size=1.00, 0.0%
DEBUG: Connecting to com.novell.BeagleIndexHelper
DEBUG: Initializing RemoteControl
DEBUG: D-BUS registered obj=Beagle.Daemon.RemoteControlImpl
path=/com/novell/Beagle/RemoteControl owner=(none)
DEBUG: D-BUS registered obj=Beagle.Daemon.FactoryImpl
path=/com/novell/Beagle/Factory owner=(none)
DEBUG: Starting QueryDriver
DEBUG: Starting Inotify Backend
DEBUG: Pre-populated UniqueIdStore cache with 724 items in .04s
INFO: Loaded 0 records from
/home/southern/.beagle/FileSystemIndex/FileAttributesStore.db in 0.000s
INFO: Loaded 194 records from
/home/southern/.beagle/LauncherIndex/FileAttributesStore.db in 0.004s
DEBUG: Found 11 types in BeagleDaemonLib, Version=1.4.3.3, Culture=neutral
DEBUG: Adding root /home/southern
DEBUG: Helper Size: VmRSS=10.5 MB, size=1.01, 0.3%
WARN: Exception caught while executing
Beagle.Daemon.FileSystemQueryable.FileSystemQueryable:Void StartWorker()
WARN: System.ArgumentException: UNC pass should be of the form \\server\share.
in [0x00165] (at
/var/tmp/portage/mono-1.1.4/work/mono-1.1.4/mcs/class/corlib/System.IO/Path.cs:228)
System.IO.Path:GetFullPath (string)
in [0x00016] (at
/var/tmp/portage/mono-1.1.4/work/mono-1.1.4/mcs/class/corlib/System.IO/DirectoryInfo.cs:49)
System.IO.DirectoryInfo:.ctor (string)
in <0x00029> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor
(string)
in [0x00024] (at
/var/tmp/portage/mono-1.1.4/work/mono-1.1.4/mcs/class/corlib/System.IO/DirectoryInfo.cs:138)
System.IO.DirectoryInfo:GetDirectories (string)
in <0x00045> (wrapper remoting-invoke-with-check)
System.IO.DirectoryInfo:GetDirectories (string)
in [0x00006] (at
/var/tmp/portage/mono-1.1.4/work/mono-1.1.4/mcs/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 ()

INFO: Starting Gaim log backend
INFO: Gaim log backend worker thread done in .25s
INFO: Starting Evolution mail backend
DEBUG: D-BUS registered
obj=Beagle.Daemon.WebHistoryQueryable.WebHistoryQueryable+WebHistoryIndexerImpl
path=/com/novell/Beagle/WebHistoryIndexer owner=(none)
INFO: Starting launcher backend
INFO: Scanning Launchers
INFO: Starting Evolution mail backend
WARN: Evolution mail store not found, watching for it.
INFO: Found 470 Launchers in .41s
INFO: Launcher backend worker thread done in .77s
DEBUG: Starting Scheduler thread
DEBUG: Starting Inotify threads
ERROR: FileAdvise failed: Success
DEBUG: Ready to accept requests after 3.08s
DEBUG: Starting main loop
DEBUG: OnNameOwnerChanged: com.novell.BeagleIndexHelper '' ':1.24'
DEBUG: Helper Size: VmRSS=10.5 MB, size=1.01, 0.3%
DEBUG: Shutting down on failed TestService in BeagleDaemonWatcherTimeoutHandler
DEBUG: RemoteIndexerImpl.QueueCloseForAll called
INFO: Exiting
Comment 1 Chris Southern 2005-03-24 19:19:19 UTC
Beagle: 0.0.8
Mono: 1.1.4
Comment 2 Jon Trowbridge 2005-03-24 19:30:21 UTC
This sounds suspiciously like a mono bug.
Comment 3 Daniel Drake 2005-03-31 21:47:18 UTC
Yep, filed upstream at http://bugzilla.ximian.com/show_bug.cgi?id=74290