Bug 669942 - javaws fails to download version/packed files (missing support for jnlp.packEnabled and jnlp.versionEnabled)
Summary: javaws fails to download version/packed files (missing support for jnlp.packE...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: icedtea-web
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Omair Majid
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-16 01:15 UTC by Stefan Neufeind
Modified: 2011-09-15 20:16 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-09-15 20:16:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
JNLP-file as returned from the ATEN iKVM-webserver (1.83 KB, application/x-java-jnlp-file)
2011-01-16 01:15 UTC, Stefan Neufeind
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.