Bug 304031 - java-1.6.0-openjdk-plugin has no support for signed applets
Summary: java-1.6.0-openjdk-plugin has no support for signed applets
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 302071 415061 (view as bug list)
Depends On:
Blocks: 302071
TreeView+ depends on / blocked
 
Reported: 2007-09-24 20:52 UTC by Thomas Fitzsimmons
Modified: 2008-12-20 21:18 UTC (History)
21 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-14 21:45:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Stderr output -- Junpier Network Connect (22.78 KB, text/plain)
2008-11-16 20:18 UTC, Ray Van Dolson
no flags Details
Log from non-working applet (Supermicro IPMI console) (10.82 KB, text/plain)
2008-11-16 22:45 UTC, Stefan Neufeind
no flags Details

Description Thomas Fitzsimmons 2007-09-24 20:52:50 UTC
java-1.7.0-icedtea-plugin runs signed applets in untrusted mode.

Comment 1 Thomas Fitzsimmons 2007-10-15 14:38:20 UTC
*** Bug 302071 has been marked as a duplicate of this bug. ***

Comment 2 Thomas Fitzsimmons 2007-12-06 23:23:24 UTC
*** Bug 415061 has been marked as a duplicate of this bug. ***

Comment 3 Linus Walleij 2007-12-07 00:07:41 UTC
Test case from other bug:

Description of problem:
Tried to access a test applet for the Swedish BankID (electronic authorization
used by most Swedish citizens) but it doesn't run in IcedTea unfortunately...

Version-Release number of selected component (if applicable):
java-1.7.0-icedtea-1.7.0.0-0.19.b21.snapshot.fc8
java-1.7.0-icedtea-plugin-1.7.0.0-0.19.b21.snapshot.fc8

How reproducible:
Every time, visit this webpage:
https://test.bankid.com/TestBankidCom/Templates/TestPage.aspx?id=29

Actual results:
Text in white on blue: "Applet was not granted necessary rights and is unable to
run. Please contact your support line if this problem persists."
(The problem persists.)

Expected results:
Applet should run.

If you need me to run any debug traces etc, tell me. But accessing the web page
should be the only necessary test and debug tool needed.

Comment 4 Joshua Sumali 2008-02-28 18:18:46 UTC
Experimental signed applet support has recently been added to IcedTea. The
README file in the IcedTea repository has more information on how to enable
building of this feature. Please note that since this feature is experimental,
it is not enabled by default.

Comment 5 Thomas Fitzsimmons 2008-04-30 21:16:14 UTC
This feature has not hit Rawhide yet.  The support is in the RPM but not
enabled.  People interested in trying this can checkout java-1.6.0-openjdk from
CVS, include --enable-netx-plugin on the icedteaopt line and build new RPMs.

Signed applet support may be included in a Fedora 9 java-1.6.0-openjdk update.

Comment 6 Bug Zapper 2008-05-14 03:16:27 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Linus Walleij 2008-05-23 23:43:53 UTC
Visiting my testcase after building --enable-netx-plugin
gives the following firefox bomb on this x86_64 host:

GCJ PLUGIN: thread 0x93aef0: NP_Initialize
GCJ PLUGIN: thread 0x93aef0: plugin_test_appletviewer
GCJ PLUGIN: thread 0x93aef0: plugin_test_appletviewer return
GCJ PLUGIN: thread 0x93aef0: NP_Initialize: using
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/../../bin/pluginappletviewer
GCJ PLUGIN: thread 0x93aef0: NP_Initialize return
GCJ PLUGIN: thread 0x93aef0: GCJ_New
GCJ PLUGIN: thread 0x93aef0: plugin_data_new
GCJ PLUGIN: thread 0x93aef0: plugin_data_new return
GCJ PLUGIN: thread 0x93aef0: plugin_get_documentbase
GCJ PLUGIN: thread 0x93aef0: plugin_get_documentbase return
GCJ PLUGIN: thread 0x93aef0: GCJ_New: creating input fifo:
/home/linus/.gcjwebplugin/gcj-instance-26935-0-appletviewer-to-plugin
GCJ PLUGIN: thread 0x93aef0: GCJ_New: created input fifo:
/home/linus/.gcjwebplugin/gcj-instance-26935-0-appletviewer-to-plugin
GCJ PLUGIN: thread 0x93aef0: GCJ_New: creating output fifo:
/home/linus/.gcjwebplugin/gcj-instance-26935-0-plugin-to-appletviewer
GCJ PLUGIN: thread 0x93aef0: GCJ_New: created output fifo:
/home/linus/.gcjwebplugin/gcj-instance-26935-0-plugin-to-appletviewer
GCJ PLUGIN: thread 0x93aef0: plugin_start_appletviewer
GCJ PLUGIN: thread 0x93aef0: plugin_start_appletviewer return
GCJ PLUGIN: thread 0x93aef0: GCJ_New: got confirmation that appletviewer is running.
GCJ PLUGIN: thread 0x93aef0: plugin_create_applet_tag
GCJ PLUGIN: thread 0x93aef0: plugin_create_applet_tag return
GCJ PLUGIN: thread 0x93aef0: plugin_send_message_to_appletviewer
**
** GLib:ERROR:(giochannel.c:2129):IA__g_io_channel_write_chars: code should not
be reached
/usr/lib64/firefox-3.0b5/run-mozilla.sh: line 131: 26935 Avbruten (SIGABRT)    
 "$prog" ${1+"$@"}
[linus@c83-254-42-36 ~]$   PIPE: appletviewer wrote: running
  PIPE: appletviewer read: null
APPLETVIEWER: exiting appletviewer


Comment 8 Red Hat Bugzilla 2008-07-25 01:04:00 UTC
Adding patrickm to the cc list as the manager of the disabled user fitzsim who reported this bug

Comment 9 drago01 2008-10-30 17:15:41 UTC
(In reply to comment #5)
> This feature has not hit Rawhide yet.  The support is in the RPM but not
> enabled.  People interested in trying this can checkout java-1.6.0-openjdk from
> CVS, include --enable-netx-plugin on the icedteaopt line and build new RPMs.
> 
> Signed applet support may be included in a Fedora 9 java-1.6.0-openjdk update.

Any update on this?

Comment 10 Deepak Bhole 2008-11-14 21:45:47 UTC
Signed applets are now fully supported as of Rawhide/F10.

Comment 11 Linus Walleij 2008-11-14 22:08:01 UTC
Excellent news Deepak, and well done by everyone involved.

Comment 12 Ray Van Dolson 2008-11-15 05:02:04 UTC
Which version of openjdk includes support for this?

I'm running rawhide and pulled these:

java-1.6.0-openjdk-1.6.0.0-4.b12.fc10.i386
java-1.6.0-openjdk-plugin-1.6.0.0-4.b12.fc10.i386

From Koji -- the release notes don't mention this bz as being fixed so I'm suspicious it's not the correct release yet.  And sure enough still getting:

netx: Initialization Error: Could not initialize applet. (net.sourceforge.jnlp.LaunchException Fatal: Initialization Error: A fatal error occurred while trying to verify jars.)

errors with the Juniper Networks Network Connect client (work VPN).

Comment 13 Tim Lauridsen 2008-11-15 07:09:28 UTC
I cant confirm that the homebanking i use work with openjdk and signed applets in rawhide, for the first time i don't need to install the sun binaries to make it work.
Keep up the great work !

Comment 14 Deepak Bhole 2008-11-15 21:06:32 UTC
Ray, the version you are using is the right one. 

The failure you are seeing appears to be a site-specific issue. Can you please retry the site, this time starting firefox from console with variable ICEDTEAPLUGIN_DEBUG=true, and then attach the resulting log and /tmp/java.stderr (file is created when ICEDTEAPLUGIN_DEBUG=true)? 

Also, note that debug output contains all kinds of data. Depending on how the applet was written, it *might* contain sensitive info (though very unlikely). It'd be best to therefore scan the file for any personal information before attaching.

Comment 15 Stefan Neufeind 2008-11-15 23:16:34 UTC
tried the above mentioned updates for F10 on a F9-system (okay, with a --nodeps to skip the dep to ca-certificates). Works like a charme. Now signed applets work great, it seems, with F9.

Any chance to get that update to show up in F9 as well, maybe at least for updates-testing?

Comment 16 Ray Van Dolson 2008-11-16 20:18:42 UTC
Created attachment 323727 [details]
Stderr output -- Junpier Network Connect

Comment 17 Ray Van Dolson 2008-11-16 20:19:53 UTC
(In reply to comment #14)
> Ray, the version you are using is the right one. 
> 
> The failure you are seeing appears to be a site-specific issue. Can you please
> retry the site, this time starting firefox from console with variable
> ICEDTEAPLUGIN_DEBUG=true, and then attach the resulting log and
> /tmp/java.stderr (file is created when ICEDTEAPLUGIN_DEBUG=true)? 
> 
> Also, note that debug output contains all kinds of data. Depending on how the
> applet was written, it *might* contain sensitive info (though very unlikely).
> It'd be best to therefore scan the file for any personal information before
> attaching.

See attached.  Thanks for taking a look.  Also had filed a bug for this upstream FYI.

Comment 18 Stefan Neufeind 2008-11-16 22:45:35 UTC
Created attachment 323730 [details]
Log from non-working applet (Supermicro IPMI console)

Comment 19 Stefan Neufeind 2008-11-16 22:48:28 UTC
Please see atteched log from a non-working applet (tested against above mentioned F10-version of icedtea). It essentially fails with:

IcedTeaPlugin.cc:3809: Error: Failed to flush bytes to output channel: Broken pipe

which e.g. somebody also filed on the Ubuntu-tracker:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/198093

Didn't find workarounds to try out though.

PS: Site for this as well as the applet are accessed through https - does that make a difference?

Comment 20 Stefan Neufeind 2008-11-16 22:51:49 UTC
Hmm, loading the applet itself through http instead of https seems to solve the problem. The applet itself then uses https anyway though - but that works.
Somebody with a clue: Is this related or is applet-loading (of signed applets) through https a separate issue?

Comment 21 Ray Van Dolson 2008-11-16 23:03:18 UTC
I know at least in my case the https site in question is using a self-signed cert.  I don't know why this would be an issue though as I assume the web browser is handling the transport of the jar files.......

Comment 22 Ray Van Dolson 2008-11-20 03:16:36 UTC
(In reply to comment #14)
> Ray, the version you are using is the right one. 
> 
> The failure you are seeing appears to be a site-specific issue. Can you please
> retry the site, this time starting firefox from console with variable
> ICEDTEAPLUGIN_DEBUG=true, and then attach the resulting log and
> /tmp/java.stderr (file is created when ICEDTEAPLUGIN_DEBUG=true)? 
> 
> Also, note that debug output contains all kinds of data. Depending on how the
> applet was written, it *might* contain sensitive info (though very unlikely).
> It'd be best to therefore scan the file for any personal information before
> attaching.

Should I re-open this bug or rely on the one upstream?  Just thinking you coder folks might not see this now that it's closed if there's no additional activity. :-)

Thanks!

Comment 23 Deepak Bhole 2008-11-20 05:10:02 UTC
This bug should remain closed. Individual bugs should be opened for specific sites that don't work. That said, I am currently looking into the last 2 outstanding issues mentioned in this bug (juniper networks one and the supermicro one) -- I have not forgotten those :)

Comment 24 Göran Uddeborg 2008-12-02 13:07:00 UTC
(In reply to comment #23)
> This bug should remain closed. Individual bugs should be opened for specific
> sites that don't work.

What about bug 415061 about the Swedish "Bank ID".  It was closed as a duplicate of this, and reproduced in comment 3 in this bug.  But the problem still remains with java-1.6.0-openjdk-plugin-1.6.0.0-6.b12.fc10.x86_64.

The URL has changed slightly in the mean time.  The current test case is:

https://test.bankid.com/TestBankidCom/Templates/TestPage.aspx?id=22

Should this bug be reopened?  Should bug 415061 be reopened?  Or do you want a brand new bug number? :-)

Comment 25 Göran Uddeborg 2008-12-20 21:18:01 UTC
There was no reply to comment 24, so now I've filed bug 477351.  In case anyone here is interested to follow it.


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