United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6510610 Syntax error in /usr/share/mime/packages/x-java-archive.xml
JDK-6510610 : Syntax error in /usr/share/mime/packages/x-java-archive.xml

Details
Type:
Bug
Submit Date:
2007-01-08
Status:
Closed
Updated Date:
2011-02-18
Project Name:
JDK
Resolved Date:
2011-02-18
Component:
install
OS:
linux
Sub-Component:
install
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Duplicate:
Duplicate:
Duplicate:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Linux minion 2.6.18-1.2868.fc6 #1 SMP Fri Dec 15 17:32:54 EST 2006 i686 i686 i386 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
During installation, the jre-1.6.0-fcs RPM creates /usr/share/mime/packages/x-java-archive.xml. The second "match" tag misses the leading "<". This causes Nautilus to identify all Zip Archives as Java Archives. One effect is that OpenOffice documents can no longer be opened, because Nautilus complains about a mismatch between filename extension and file contents:

The filename "Report.sxw" indicates that this file is of type "OpenOffice Writer". 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.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install the jre-1.6.0-fcs RPM on Fedora Core 6. Log out and log in to restart Nautilus.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Opening OpenOffice documents should work in Nautilus as it did before I installed the jre RPM.

ACTUAL -
Nautilus refuses to open OpenOffice documents with the error message above.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
See above.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
--- x-java-archive.xml.orig     2006-12-24 14:47:05.000000000 +0100
+++ x-java-archive.xml  2006-12-25 11:57:03.000000000 +0100
@@ -32,7 +32,7 @@
     <glob pattern="*.jar"/>
     <magic priority="85">
       <match type="string" value="PK\003\004" offset="0">
-       match type="host16" value="0xcafe" offset="40" />
+       <match type="host16" value="0xcafe" offset="40" />
       </match>
     </magic>
   </mime-type>

                                    

Comments
EVALUATION

will fix in dolphin & 6u2.
                                     
2007-01-09



Hardware and Software, Engineered to Work Together