JDK-6541866 : Installing JDK 6 overrides GNOME mime information for OpenOffice files
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-04-03
  • Updated: 2011-02-16
  • Resolved: 2007-05-08
Related Reports
Duplicate :  
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)

(This also applies to JDK 1.6.0_00)

ADDITIONAL OS VERSION INFORMATION :
Fedora Core 6 / Fedora 7 test 3 (kernel 2.6.20-1.3023.fc7)

EXTRA RELEVANT SYSTEM CONFIGURATION :
GNOME 2.16 and 2.18

A DESCRIPTION OF THE PROBLEM :
After installing JDK 6, OpenOffice documents gets treated as .jar files by Nautilus. An attempt to double click to open a OpenOffice file will pop up an error message.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install JDK 6
2. Create and save a .odt file in OpenOffice
3. Try to open this file in Nautilus by double-clicking

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
File should open i OpenOffice.
ACTUAL -
I get this message from Nautilus when double-clicking on an .odt document:
------------------------------------------------------------------------------------------------------------------------------------------------
The filename "test.odt" indicates that this file is of type "ODT document". The contents of the file indicate that the file is of type "Java Archive". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "Java Archive", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.
------------------------------------------------------------------------------------------------------------------------------------------------

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
1. Remove /usr/share/mime/packages/x-java-archive.xml
2. Run "update-mime-database /usr/share/mime" as root