Bug 315049

Summary: [import/export] exception printed to stdout when synchronizing to non-writable folder
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: dsdp.tm.rse-inbox <tm.rse-inbox>
Status: NEW --- QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 Keywords: helpwanted
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Oberhuber CLA 2010-05-31 06:23:39 EDT
Build ID: RSE 3.2rc3

1. Create local project foo with some content
2. Right-click > Export > Remote Systems > Remote File System
3. Select a remote folder that is not writable
4. Switch on "Review / Synchronize"

--> The export fails, and an exception is printed to stdout.

It looks like the problematic place is in FileSystemOperations.java line 553.
It looks like the RSE's SecurityException needs to be translated into a proper TeamException here.

Note: When "Review/Synchronize" is switched off, a "Security Violation" is reported as expected; BUT the error message does not tell on what folder the exception happened.
Comment 1 Martin Oberhuber CLA 2010-05-31 06:24:07 EDT
It should be easy to create a Unittest for this scenario in RSESynchronizeTest.