United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8021907 : DRS: certificate element algorithm is supposed to default to SHA-256

Details
Type:
Bug
Submit Date:
2013-07-30
Status:
Closed
Updated Date:
2013-09-09
Project Name:
JDK
Resolved Date:
2013-08-01
Component:
deploy
OS:
Sub-Component:
Empty
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u40
Fixed Versions:
7u40 (b37)

Related Reports
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
The certificate element has two arguments, hash and algorithm.
If you specify algorithm="SHA-256" everything works as expected.
If you omit the algorithm arg it is supposed to default to SHA-256 but instead it causes a NPE inside security libs code due to passing in the null algorithm
                                    

Comments
webrev: http://oklahoma.us.oracle.com/www/webrevs/aherrick/1.8.0/8021907/deploy/webrev/
                                     
2013-07-31
to test: use poilcy files in http://oklahoma.us.oracle.com/www/tests/policy
1.) ruleset.xml.run-cert1 (with algorithm arg)
2.) ruleset.xml.run-cert2 (without algorithm arg)
both contains the cert hash to run app: http://oklahoma.us.oracle.com/www/tests/sandbox/helloa.jnlp without any dialogs.
without change only 1 will work, after change both 1 and 2 work.

                                     
2013-07-31
SQE-OK to get this issue fixed for 7u40
                                     
2013-07-31
Verified ok with build 47 from http://rehudson.us.oracle.com/hudsonws/7u_deploy/bundles/
                                     
2013-08-01
regression_test_src: http://sqe-hgi.us.oracle.com/hg/index.cgi/8/deployment_int_ws/file/5348709aa7f0/new_framework/tests/plugin/LSPJPI/src/LSPActionRunTest.java
                                     
2013-08-16
Verified using 7u40-b42
                                     
2013-09-09



Hardware and Software, Engineered to Work Together