Bug 549265 - [Smart project import] Archive expansion override does not work
Summary: [Smart project import] Archive expansion override does not work
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2019-07-15 03:49 EDT by Paul Pazderski CLA
Modified: 2021-07-05 16:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pazderski CLA 2019-07-15 03:49:52 EDT
The smart import wizard expands archives before starting the smart import. If an expanded copy already exist a dialog ask for overwrite conformation. (side note: the "want do overwrite?" dialog should show Yes, No instead of Ok, Cancel)
At least on Windows the overwrite fails with FileAlreadyExistsException. This is reported as "Incomplete expansion" warning dialog.

java.nio.file.FileAlreadyExistsException: ...
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:87)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231)
	at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
	at java.base/java.nio.file.Files.newOutputStream(Files.java:219)
	at java.base/java.nio.file.Files.copy(Files.java:3066)
	at org.eclipse.ui.internal.wizards.datatransfer.SmartImportWizard$ExpandArchiveIntoFilesystemOperation.run(SmartImportWizard.java:116)
	at org.eclipse.ui.internal.wizards.datatransfer.SmartImportWizard.expandArchive(SmartImportWizard.java:329)
	at org.eclipse.ui.internal.wizards.datatransfer.SmartImportRootWizardPage$4$1.run(SmartImportRootWizardPage.java:405)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Comment 1 Eclipse Genie CLA 2021-07-05 16:08:51 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.