Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79624 --- shadow/79624 2006-10-08 17:34:00.000000000 -0400 +++ shadow/79624.tmp.19553 2006-10-08 17:34:00.000000000 -0400 @@ -0,0 +1,76 @@ +Bug#: 79624 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: FileSystemWatcher events have incorrect information + +I set up a very simple program to test the FileSystemWatcher and I noticed +that some important events have bad data in them. + +I'll attach the program in a while so that you can see the results for +yourselves. + +This is the transcript of the tests performed: + +$ mkdir /tmp/fsw +$ mono travelight.exe /tmp/fsw + +$ touch /tmp/fsw/helloWorld +Create: /tmp/fsw/helloWorld Created +File: /tmp/fsw/helloWorld Changed +File: /tmp/fsw/helloWorld Changed + +$ mv /tmp/fsw/helloWorld /tmp/fsw/hiWorld +Old file: /tmp/fsw/hiWorld +New file: /tmp/fsw/hiWorld + +Note: The old file information is clearly incorrect. + +$ mkdir /tmp/fsw/xpto +Create: /tmp/fsw/xpto Created + +$ mv /tmp/fsw/xpto/ /tmp/fsw/tmp +Old file: /tmp/fsw/tmp +New file: /tmp/fsw/tmp + +Note: again the old file information is incorrect. + +$ echo helloWorld > /tmp/fsw/tmp/hiWorld +Create: /tmp/fsw/xpto/hiWorld Created +File: /tmp/fsw/xpto/hiWorld Changed + +Note: there is no /tmp/fsw/xpto anymore so this is wrong too. + +$ mv /tmp/fsw/tmp/hiWorld /tmp/fsw/tmp/helloWorld +Old file: /tmp/fsw/xpto/helloWorld +New file: /tmp/fsw/xpto/xpto/helloWorld + +Note: Not only the old file is incorrect (both the directory and the file +name), the new file's FullPath contains the xpto directory twice. + +I'm running this test on a Ubuntu Edgy system. Mono version is: + +$ mono --version +Mono JIT compiler version 1.1.17.1, (C) 2002-2006 Novell, Inc and +Contributors. www.mono-project.com + TLS: __thread + GC: Included Boehm (with typed GC) + SIGSEGV: normal + Disabled: none + +Kernel version is 2.6.17. + +If you need further information please let me know as I would really like +to use Mono for a new upcoming project but I need to use the FileSystemWatcher. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
