Delete Bug

Nov 4, 2011 at 10:22 PM

In CloudStorageComfortFunctions there is a function DeleteFilesystemEntry.  In that function it calls GetFileSystemObject which can return null if the object does not exist.

When that happens then subsequent code does not perform correctly.  I am testing on WebDAV with IIS and what happens is that it deletes a file that it should not.

It ends up calling WebDavStorageProviderServer::DeleteResource with the wrong uri.

I want to delete something like  "/Trash/RWATSONNBN_rwatson" but the code ends up calling WebDAV.Delete on root itself which seems to delete another file and returns error 403.

Coordinator
Nov 14, 2011 at 7:47 PM
Thanks for your contibution, I added your patch to the trunk.

Cheers
Dirk


2011/11/4 trailway <notifications@codeplex.com>

From: trailway

In CloudStorageComfortFunctions there is a function DeleteFilesystemEntry. In that function it calls GetFileSystemObject which can return null if the object does not exist.

When that happens then subsequent code does not perform correctly. I am testing on WebDAV with IIS and what happens is that it deletes a file that it should not.

It ends up calling WebDavStorageProviderServer::DeleteResource with the wrong uri.

I want to delete something like "/Trash/RWATSONNBN_rwatson" but the code ends up calling WebDAV.Delete on root itself which seems to delete another file and returns error 403.

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com