JDK-6546085 : Install MagicIso causes Desktop.getDesktop.open(File file) fail to work
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: External
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-04-13
  • Updated: 2017-02-07
  • Resolved: 2017-02-07
Description
FULL PRODUCT VERSION :
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I attempted to open a file via java.awt.Desktop.getDesktop().open(File file).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install MagicIso from www.magiciso.com.
Try to launch any file using java.awt.Desktop.getDesktop().open(File file).

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected outcome was that the file be opened.
ACTUAL -
There was no indication that the JRE tried to open the file and no exception was thrown.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
try {
    Desktop.getDesktop().open(new File("C:\\ANYTHING"));
} catch (Exception e) {}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Uninstalling MagicIso resulted in the JRE opening files via java.awt.Desktop.getDesktop().open(File file) again.

Comments
EVALUATION The bug is easily reproduced on my WinXP SP1 desktop. I have written a short native test (attached) that performs roughly the same actions as AWT Desktop class. Using it, I found that after MagicISO is installed, all the commands like "file://path:/to/file" stop working, while "path:\\to\\file" still handled correctly. Most probably this is a bug in MagicISO, however, I don't know if they have a public bugs database.
24-04-2007