Bug 567228

Summary: No java plugin in firefox
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: java-1.6.0-openjdkAssignee: Martin Matejovic <mmatejov>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhideCC: awilliam, dbhole, langel, lkundrak, mjw, mmatejov
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-15 09:32:03 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:
Bug Depends On:    
Bug Blocks: 507681    

Description Nicolas Mailhot 2010-02-22 11:35:01 UTC
Description of problem:

The java plugin filename changed but alternative rules were not updated ; as a result it is no longer registered in firefox

java-1.6.0-openjdk-plugin-1:1.6.0.0-34.b17.fc13.x86_64

$ ls -l /usr/lib64/mozilla/plugins/libjavaplugin.so 
lrwxrwxrwx. 1 root root 41 19 févr. 10:49 /usr/lib64/mozilla/plugins/libjavaplugin.so -> /etc/alternatives/libjavaplugin.so.x86_64

$ ls -l /etc/alternatives/libjavaplugin.so.x86_64
lrwxrwxrwx. 1 root root 64 19 févr. 10:49 /etc/alternatives/libjavaplugin.so.x86_64 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so

$ rpm -ql java-1.6.0-openjdk-plugin
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/IcedTeaNPPlugin.so

Comment 1 Adam Williamson 2010-02-22 19:18:10 UTC
Confirmed here. It seems the spec file had the new name of the file added to the list that alternatives uses, but that's not enough: as long as the old name is still listed, alternatives will continue to use it, even if the file doesn't exist:

[root@adam F-13]# update-alternatives --display libjavaplugin.so.x86_64
libjavaplugin.so.x86_64 - status is auto.
 link currently points to /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so - priority 16000
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaNPPlugin.so - priority 16000
Current `best' version is /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so.

either the old name should be removed in %post, or the new name should be given a higher priority, I guess.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 2 Adam Williamson 2010-02-22 19:19:07 UTC
workaround is 'update-alternatives --config libjavaplugin.so.x86_64' (or .i586 or something on 32-bit, I guess) and then pick the appropriate option (should be 2).

Comment 3 Deepak Bhole 2010-02-23 02:34:58 UTC
Hmm, odd. The IcedTeaPlugin.so alternative should have gotten removed during upgrade.

Re-assigning to Fedora RPM owner.

Comment 5 Adam Williamson 2010-02-23 20:47:05 UTC
deepak: I only glanced at the spec, but it looks like there's nothing there to remove the old name, that I could see anyway.

Comment 6 Fedora Update System 2010-03-13 17:51:32 UTC
java-1.6.0-openjdk-1.6.0.0-33.b17.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-33.b17.fc11

Comment 7 Fedora Update System 2010-03-13 17:53:46 UTC
java-1.6.0-openjdk-1.6.0.0-36.b17.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-36.b17.fc12

Comment 8 Fedora Update System 2010-03-15 09:29:15 UTC
java-1.6.0-openjdk-1.6.0.0-35.b17.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-35.b17.fc13

Comment 9 Fedora Update System 2010-03-16 00:40:58 UTC
java-1.6.0-openjdk-1.6.0.0-33.b17.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-03-16 00:45:04 UTC
java-1.6.0-openjdk-1.6.0.0-36.b17.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-03-23 23:27:41 UTC
java-1.6.0-openjdk-1.6.0.0-35.b17.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.