CopyFileFromUSB does not fail

dberezowski
Posts: 65
Joined: Wed Sep 08, 2010 4:03 pm

CopyFileFromUSB does not fail

Post by dberezowski » Tue Jun 28, 2011 8:55 am

CopyFileFromUSB does not fail when the user has removed the stick. Instead it sends the successEvent. To duplicate, insert stick, press MountUSB, remove the stick, press CopyFromUSB.

Admittedly, one should not remove the stick until it has been unmounted BUT a user will do this inadvertently and my program needs to handle it gracefully.

Note that CopyToUSB does fail and thus passes this test.

CopyFileFromUSB when user has removed stick
Note that the fail event is never sent even though the copy fails.
ENTER Script CopyFileFromUSB
EXIT Script CopyFileFromUSB
cp: Can't open source file. (/mnt/stick/filename)
ENTER Script CopyFileFromUSBComplete ( CopyFileFromUSBFail should have been sent )
NM-server: pulse received
code = 0xffffffdd
coid = 0xffffffff
NM-server: pulse received
code = 0xffffffdf
coid = 0x40000021
EXIT Script CopyFileFromUSBComplete
Attachments
ScriptFileAccessDemo_20110622.db3
Used to tests script I/O calls and error recovery.
(3.15 MiB) Downloaded 12 times
jtabb
Enovation Controls Development
Enovation Controls Development
Posts: 37
Joined: Mon Apr 04, 2011 8:59 am

Re: CopyFileFromUSB does not fail

Post by jtabb » Thu Jul 07, 2011 9:02 am

dberezowski,

I am working your bug and I am trying to best characterize it incorporating dwills comments over on the ScriptFileAccessDemo script errors thread.

I'll update you when I have more information to share.

Thanks for the find!
jtabb
FW Murphy Development Team
jtabb
Enovation Controls Development
Enovation Controls Development
Posts: 37
Joined: Mon Apr 04, 2011 8:59 am

Re: CopyFileFromUSB does not fail

Post by jtabb » Mon Jul 11, 2011 2:40 pm

dberezowski,

We incorporated this in our latest development build. I tested it this afternoon and showed that we now do send the fail and succeed events correctly. Look for this in the coming 2.3 release.

Thanks for the find.
jtabb
FW Murphy Development Team
dberezowski
Posts: 65
Joined: Wed Sep 08, 2010 4:03 pm

Re: CopyFileFromUSB does not fail

Post by dberezowski » Mon Jul 11, 2011 4:14 pm

And thank you for the excellent support!