Bug 669942

Summary: javaws fails to download version/packed files (missing support for jnlp.packEnabled and jnlp.versionEnabled)
Product: [Fedora] Fedora Reporter: Stefan Neufeind <redhat>
Component: icedtea-webAssignee: Omair Majid <omajid>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: ahughes, dbhole, jvanek, langel, lkundrak, mjw, mmatejov, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-15 20:16:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
JNLP-file as returned from the ATEN iKVM-webserver none

Description Stefan Neufeind 2011-01-16 01:15:43 UTC
Created attachment 473677 [details]
JNLP-file as returned from the ATEN iKVM-webserver

The ATEN iKVM-viewer works fine with Sun Java (tested on a Windows machine) but fails on F14.

Tracking this down showed that support for jnlp.packEnabled and jnlp.versionEnabled seem to be the missing in openJDK.

Excerpt from JNLP:
<jnlp spec="1.0+" codebase="http://localhost/">
  <resources>
    <property name="jnlp.packEnabled" value="true"/>
    <property name="jnlp.versionEnabled" value="true"/>
    <j2se version="1.6.0+" initial-heap-size="32M" max-heap-size="40M"/>
    <jar href="iKVM.jar" download="eager" main="true" version="1.60.1.0x0"/>
  </resources>


See below on how to test it really fails on these two funtionalities:

javaws from openjdk tries to download the file "iKVM.jar" from localhost and fails.

Sun Java instead downloads: iKVM__V1.60.1.0x0.jar.pack.gz from localhost (using the same JNLP!)

I then manually adjusted the file-names like:
    <jar href="iKVM__V1.60.1.0x0.jar.pack.gz" download="eager" main="true" version="1.60.1.0x0"/>
And that downloaded the file successfully. However it did not execute because of
java.util.zip.ZipException: error in opening zip file


So I manually unpacked the file:
unpack200 liblinux_x86_64__V1.0.3.jar.pack.gz liblinux_x86_64__V1.0.3.jar

And modified the jnlp to read:
<jnlp spec="1.0+" codebase="./">
  <resources>
    <property name="jnlp.packEnabled" value="true"/>
    <property name="jnlp.versionEnabled" value="true"/>
    <j2se version="1.6.0+" initial-heap-size="32M" max-heap-size="40M"/>
    <jar href="iKVM__V1.60.1.0x0.jar" download="eager" main="true" version="1.60.1.0x0"/>
  </resources>

And then it finally started successfully without further problems.

Comment 1 Stefan Neufeind 2011-01-19 12:41:38 UTC
Just found a random bug-report upstream refering to packEnabled (and a linked one also refering to versionEnabled). See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6672250

They seem to indicate support for those two things was added back in 2008 - but seems to not be available in the current IcedTea-release. Can that be? Could somebody with a deeper knowledge in IcedTea-development maybe check that in the sources and possibly see if (in case needed) upstream-IcedTea can (back-)port something maybe?

Comment 2 Omair Majid 2011-01-19 14:57:50 UTC
Hi Stefan

I am one of the IcedTea developers. I can confirm that this support is indeed missing in IcedTea6 and IcedTea-Web.

(In reply to comment #1)
> They seem to indicate support for those two things was added back in 2008 - but
> seems to not be available in the current IcedTea-release. Can that be? Could
> somebody with a deeper knowledge in IcedTea-development maybe check that in the
> sources and possibly see if (in case needed) upstream-IcedTea can (back-)port
> something maybe?

Unfortunately, Sun (now Oracle) did not open source the plugin and web start  along with the rest of the JDK. The plugin/javaws provided by the IcedTea project is a completely independent Free implementation. It is not fully compatible with the proprietary plugin/web start (yet). I will be working on fixing this particular bug upstream.

Thanks for reporting the bug!

Comment 3 Omair Majid 2011-02-14 16:24:06 UTC
I have added support upstream for packEnabled and versionEnabled, but only for jnlp files; applet support should be forthcoming.

http://icedtea.classpath.org/hg/icedtea-web/rev/0768433ea58d
http://icedtea.classpath.org/hg/icedtea-web/rev/6915efabb42c
http://icedtea.classpath.org/hg/icedtea-web/rev/c6f717dfcb97

Comment 4 Omair Majid 2011-09-15 20:16:04 UTC
The bug is fixed in icedtea-web 1.1. There are no plans to add icedtea-web to F14.