Bug 567104

Summary: [Import/Export] FileSystem - Export Error if a File should be overriden
Product: [Eclipse Project] Platform Reporter: Sven Dittmann <sdittmanngm>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, m.nowatzki
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Error Popup Screenshot
none
Encounterd error during export when trying to overwrite existing files or folders none

Description Sven Dittmann CLA 2020-09-18 03:24:47 EDT
Created attachment 284167 [details]
Error Popup Screenshot

Overview:

Using the FileSystem Export Function causes en error during export Message. But only if the File already exists.

Error Message: 

Problem were encountered during export

Under Details:

Problems were encountered during export:
  Error exporting C:/build-all/etc/properties/common/AsgnFuncIdentCtrl.properties: C:\build-all\etc\properties\common\AsgnFuncIdentCtrl.properties
  C:\build-all\etc\properties\common\AsgnFuncIdentCtrl.properties

There is nothing in the Error Log View


Steps to Reproduce: 
Export a any File to any Destination. Export the same File to the same Destination.

Actual Results:
The File gets not overriden

Expected Results: 
Override the File or show a Detailed Error Message
Comment 1 Markus Nowatzki CLA 2021-01-22 07:34:59 EST
I seem to have this problem as well.


Overview: 

When trying to export a project or folder or even file and the folders/files exist at the target I encounter the error 

Error Message:

"Problems were encountered during the export"

Details:

"Error exporting" Filename A
"Error exporting" Filename B
etc.

Steps to Reproduce:

1. Choose a project
2. Export...
3. Select Filesystem and click Next
4. Enter desired target under "To directory"
   Select "Overwrite existing Files without warning" and "Create directory structure" for files
5.Upon clicking finish the error occurs

If I choose to deselect "Overwrite existing Files without warning" the error does not occur, but then I have to confirm each file separately, which works. 

If then I decide to choose "Overwrite 'Filename' in folder 'targetfolder'" and "Yes for all" the error occurs again.

There is nothing in the error log at all.

 Actual Results:
The Files gets not overwritten

Expected Results: 
Overwrite the Files or show a Detailed Error Message

My version of Eclipse is:

Version: 2020-09 (4.17.0)
Build id: 20200910-1200

My OS is: Ubuntu 18.04.5 LTS with OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04)


A collegue has tested this also on Windows, with a current eclipse installation (don't know which one). The error has occcurred now for several years, and I try it again and again whenever a new Eclipseversion is being published. So I decided to add my case to this bugreport.
Comment 2 Markus Nowatzki CLA 2021-01-22 07:36:30 EST
Created attachment 285364 [details]
Encounterd error during export when trying to overwrite existing files or folders
Comment 3 Markus Nowatzki CLA 2021-01-22 07:38:34 EST
I forgot to say, the export works well, when the target does not yet exist.