Menu

#56 [Plugin] CheckFileSystem can't handle NTFS permission issues

Release_3.0
closed-fixed
nobody
Interface (29)
7
2006-06-06
2005-09-15
No

(I suggest the creation of a new category called Plugins)

When configuring the CheckFileSystem plugin, and
opening a drive node, and unhandled exception is raised
on "System Volume Information" folder, because of it's
permissions. After the error raise the plugin cesses
itering the remaining folders, causing that any folders
listed after "System Volume Information" in an NTFS
volume aren't listed in the treeview.

I suggest marking permission issues on the treeview
with a different color (ie. red), thus showing that the
current user doesn't have permissions to handle that
folder.

The error dump follows:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the
path "System Volume Information" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode,
String str)
at System.IO.Directory.InternalGetFileDirectoryNames
(String fullPath, String userPath, Boolean file)
at System.IO.DirectoryInfo.GetDirectories(String
searchPattern)
at System.IO.DirectoryInfo.GetDirectories()
at HM_Plugin.FrmConfigure.AddFolderNode
(DirectoryInfo f, TreeNode& parent, Int32 level)
at HM_Plugin.FrmConfigure.AddFolderNode
(DirectoryInfo f, TreeNode& parent, Int32 level)
at
HM_Plugin.FrmConfigure.TreeViewFileSystem_BeforeEx
pand(Object sender, TreeViewCancelEventArgs e)
at System.Windows.Forms.TreeView.OnBeforeExpand
(TreeViewCancelEventArgs e)
at System.Windows.Forms.TreeView.TvnExpanding
(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify
(Message& m)
at System.Windows.Forms.TreeView.WndProc
(Message& m)
at
System.Windows.Forms.ControlNativeWindow.OnMessa
ge(Message& m)
at
System.Windows.Forms.ControlNativeWindow.WndProc
(Message& m)
at System.Windows.Forms.NativeWindow.Callback
(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/msc
orlib.dll
----------------------------------------
Interface
Assembly Version: 3.0.2071.32292
Win32 Version: 3.0.2071.32292
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Interface.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6310.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0
.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system.serviceprocess/1
.0.5000.0__b03f5f7f11d50a3a/system.serviceprocess.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77
a5c561934e089/system.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1
.0.5000.0__b77a5c561934e089/system.windows.forms.dl
l
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000
.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0_
_b77a5c561934e089/system.xml.dll
----------------------------------------
PluginMGMT
Assembly Version: 1.0.2071.32291
Win32 Version: 1.0.2071.32291
CodeBase: file:///C:/Program%
20Files/HealthMonitor/PluginMGMT.DLL
----------------------------------------
Notifications
Assembly Version: 1.0.2071.32291
Win32 Version: 1.0.2071.32291
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Notifications.DLL
----------------------------------------
DBLogging
Assembly Version: 2.1.2071.32291
Win32 Version: 2.1.2071.32291
CodeBase: file:///C:/Program%
20Files/HealthMonitor/DBLogging.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2300
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0_
_b77a5c561934e089/system.data.dll
----------------------------------------
XPExplorerBar
Assembly Version: 3.2.1.0
Win32 Version: 3.2.1.0
CodeBase: file:///C:/Program%
20Files/HealthMonitor/XPExplorerBar.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/accessibility/1.0.5000.0_
_b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
CheckDisk
Assembly Version: 1.0.2071.19196
Win32 Version: 1.0.2071.19196
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckDisk.dll
----------------------------------------
CheckCPU
Assembly Version: 1.0.2071.18169
Win32 Version: 1.0.2071.18169
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckCPU.dll
----------------------------------------
CheckMemory
Assembly Version: 1.0.2071.19156
Win32 Version: 1.0.2071.19156
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckMemory.dll
----------------------------------------
CheckEvent
Assembly Version: 1.0.2071.19177
Win32 Version: 1.0.2071.19177
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckEvent.dll
----------------------------------------
CheckScript
Assembly Version: 1.0.2071.19651
Win32 Version: 1.0.2071.19651
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckScript.dll
----------------------------------------
CheckServices
Assembly Version: 1.0.2071.19062
Win32 Version: 1.0.2071.19062
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckServices.dll
----------------------------------------
CheckFileSystem
Assembly Version: 0.1.2071.19164
Win32 Version: 0.1.2071.19164
CodeBase: file:///C:/Program%
20Files/HealthMonitor/Checks/CheckFileSystem.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for
this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms
section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled
exception
will be sent to the JIT debugger registered on the
machine
rather than being handled by this dialog.

Discussion

  • Anonymous

    Anonymous - 2005-09-15
    • priority: 5 --> 7
     
  • Vittorio Pavesi

    Vittorio Pavesi - 2006-02-01
    • status: open --> open-fixed
     
  • Vittorio Pavesi

    Vittorio Pavesi - 2006-02-01

    Logged In: YES
    user_id=809959

    Really thanks for bugs reporting, I fixed it and updated the
    source on CVS.
    The patched version will be released with version 3.1 soon.

     
  • Vittorio Pavesi

    Vittorio Pavesi - 2006-03-07

    Logged In: YES
    user_id=809959

    I patched it into the beta version 3.1.

     
  • Vittorio Pavesi

    Vittorio Pavesi - 2006-06-06
    • status: open-fixed --> closed-fixed
     
  • Vittorio Pavesi

    Vittorio Pavesi - 2006-06-06

    Logged In: YES
    user_id=809959

    Released version 3.1 stable

     

Log in to post a comment.