Bug 725718

Summary: Can't switch links to the icedtea-web plugin
Product: Red Hat Enterprise Linux 6 Reporter: Radek Bíba <rbiba>
Component: icedtea-webAssignee: Deepak Bhole <dbhole>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: jvanek, patrickm, syeghiay
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: icedtea-web-1.1.2-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 15:10:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
proposed patch none

Description Radek Bíba 2011-07-26 11:26:50 UTC
Description of problem:
The new icedtea-web package contains the plugin at /usr/lib/IcedTeaPlugin.so. The problem is that system-switch-java doesn't expect such a location and doesn't switch libjavaplugin.so(.x86_64) to it.

Version-Release number of selected component (if applicable):
system-switch-java-1.1.5-2.el6

How reproducible:
Always

Steps to Reproduce:
1. Install java-1.6.0-sun-plugin
2. Install icedtea-web
3. Run system-switch-java and switch the java toolset to OpenJDK 1.6.0
  
Actual results:
java, javac etc. are switched to OpenJDK, but the SUN plugin remains set

Expected results:
The browser plugin link is set to IcedTea, too.

Additional info:
It's a regression that isn't caused by s-s-java itself but by a change in icedtea-web. Please fix s-s-java or revert the plugin location change.

Comment 2 jiri vanek 2011-08-10 14:16:03 UTC
I think I can fix this issue in s-s-java, but before posting solution (which will be quite complex) I would like to ask why plugin was renamed and moved and weather it is not worthy to rename it back.

Comment 3 Deepak Bhole 2011-08-10 14:39:34 UTC
It was moved to install in an LSB compliant location.

Comment 5 jiri vanek 2011-08-16 14:43:08 UTC
Created attachment 518504 [details]
proposed patch

This is proposed patch.
It also fix 731039, Sorry for not delivering them separately, but they are quite bound together.

Comment 8 Deepak Bhole 2011-08-31 20:00:52 UTC
Re-opening and changing component. 

The fix to system-switch-java is incorrect. s-s-j has no knowledge of which JDK icedtea-web was built against and therefore it should not be deciding when the plug-in is to be selected.

The right fix is for icedtea-web to create a proper link in JRE_HOME so that the existing system-switch-java works.

Comment 12 errata-xmlrpc 2011-12-06 15:10:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1624.html