JDK-6821202 : libnpjp2.so calls itself libnpjp2.so in about:plugins instead of java
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u12
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2009-03-24
  • Updated: 2011-02-16
  • Resolved: 2009-09-29
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)

A DESCRIPTION OF THE PROBLEM :
  I have Linux x86_64 and Firefox x86_64. I installed java with libnpjp2.so. It doesn't report itself as java in about:config. It reports itself as libnpjp2.so. This breaks the javascript of a network kvm I use that uses javascript to check for the java plugin. If the plugin was properly titled, this would work. Because it doesn't work the kvm redirects me to java.sun.com.

function javaPluginExists()
{
	var hasJavaPlugin = false;
	if (navigator.appName.indexOf("Microsoft") > -1) // Internet Explorer
	{
		hasJavaPlugin = (("" + sidebar.document.applets[0]).indexOf("object") < 0);
	}
	else if (navigator.appName.indexOf("Netscape") > -1) // Mozilla based browsers
	{
		for (i=0;i<navigator.plugins.length;i++)
		{
			if(navigator.plugins[i].description.toLowerCase().indexOf("java") > -1)
			{
				hasJavaPlugin = true;
				break;
			}
		}
	}
	else
		hasJavaPlugin = true; // assumed for Safari, and any browsers that we might not support (Opera, or others)
	return hasJavaPlugin;
}

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install Linux x86_64
2. Install Firefox x86_64
3. Install Sun Java 1.6.0.12
4. mkdir -p ~/.mozilla/plugins
5. Symlink libnpjp2.so into ~/.mozilla/plugins
6. Start Firefox
7. Enter about:config in the url box

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The title for the plugin to include the work java.
ACTUAL -
 libnpjp2.so

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
I used Greasemonkey to disable the javascript function, which prevents the redirect.

Comments
EVALUATION fixed in 6u14. Now libnpjp2.so calls itself Java(TM) Plug-in 1.6.0_xx on Unix platforms.
29-09-2009