Bug 188637 - deleting a file to which you are not authorized gives no error message
Summary: deleting a file to which you are not authorized gives no error message
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 2.0   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: contributed
: 188938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-23 09:32 EDT by David Dykstal CLA
Modified: 2011-05-25 09:48 EDT (History)
1 user (show)

See Also:
kmunir: review+


Attachments
Handle the exception that is thrown from deleteBatch when it fails to delete a file (2.05 KB, patch)
2007-06-04 16:57 EDT, Kevin Doyle CLA
mober.at+eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Dykstal CLA 2007-05-23 09:32:28 EDT
Happens in Dstore and SSH. I did not check FTP.
Steps to recreate
Log on to a system that supports permissions.
Navigate to a file that would be harmless to delete but to which you have no permission to delete.
Attempt to delete the file.
No error message appears & there is nothing sent to the log.

If you attempt to delete a folder to which you have no permission, the folder disappears from the tree but isn't really gone. It shows back up on the next refresh.

I am working from the head stream on Windows 5/23/07.
Comment 1 David Dykstal CLA 2007-05-25 23:14:05 EDT
*** Bug 188938 has been marked as a duplicate of this bug. ***
Comment 2 Kevin Doyle CLA 2007-06-04 16:57:21 EDT
Created attachment 70034 [details]
Handle the exception that is thrown from deleteBatch when it fails to delete a file

The reason no message was being displayed was because we would catch the exception and not display it to the user.

Legal Message: I, Kevin Doyle, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this
contribution under the EPL.
Comment 3 David McKnight CLA 2007-06-04 20:12:12 EDT
I've committed the patch for this.
Comment 4 Martin Oberhuber CLA 2008-08-13 13:20:04 EDT
[target cleanup] 2.0 RC2 was the original target milestone for this bug