RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1375982 - Updating Oracle JDK breaks links to JCE policies
Summary: Updating Oracle JDK breaks links to JCE policies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: java-1.8.0-oracle
Version: 6.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: jiri vanek
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On: 1449315 1503647
Blocks: 1461138 1503147 1504312
TreeView+ depends on / blocked
 
Reported: 2016-09-14 12:02 UTC by Piyush Bhoot
Modified: 2021-09-09 11:56 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, java-1.8.0-oracle packages contained incorrect links to Java Cryptography Extension (JCE) policies. As a consequence, the policies were not applied properly. This update fixes the affected links.
Clone Of:
Environment:
Last Closed: 2018-06-26 20:05:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2055 0 normal SHIPPED_LIVE java-1.8.0-oracle bug fix update 2018-06-27 00:05:33 UTC

Description Piyush Bhoot 2016-09-14 12:02:05 UTC
Description of problem:
Updating Oracle JDK breaks links to JCE policies

Version-Release number of selected component (if applicable):

java-1.8.0-oracle-1.8.0.101-1jpp.1.el6_8.x86_64
How reproducible:
Always

Steps to Reproduce:
1.set alternatives 
update-alternatives --install   /usr/lib/jvm/jre-1.8.0-oracle.x86_64/lib/security/local_policy.jar     jce_1.8.0_oracle_local_policy.x86_64      /opt/UnlimitedJCEPolicyJDK8/local_policy.jar     1000000  --slave     /usr/lib/jvm/jre-1.8.0-oracle.x86_64/lib/security/US_export_policy.jar jce_1.8.0_oracle_us_export_policy.x86_64  /opt/UnlimitedJCEPolicyJDK8/US_export_policy.jar

2.yum update java-1.8.0-oracle


Actual results:

ls -lart /usr/lib/jvm/jre-1.8.0-oracle.x86_64/lib/security
...
local_policy.jar -> /etc/alternatives/jce_1.8.0_oracle_local_policy.x86_64
US_export_policy.jar -> /etc/alternatives/jce_1.8.0_oracle_us_export_policy.x86_64

Expected results:

Links should keep pointing to JCE jar

Comment 14 jiri vanek 2017-11-16 08:01:20 UTC
No build done, but switching to modified, as it is fixed by underlying component.

Comment 18 zzambers 2018-05-23 21:23:53 UTC
I tested this one and with current packages and everything seems to work as expected. Update was done from java-1.8.0-oracle-1.8.0.171-1jpp.2.el6 to java-1.8.0-oracle-1.8.0.171-1jpp.3.el6.

Links from /usr/lib/jvm/jre-1.8.0-oracle.x86_64/lib/security point to 
links in /etc alternatives (this is expected):
local_policy.jar -> /etc/alternatives/jce_1.8.0_oracle_local_policy.x86_64
and
US_export_policy.jar -> /etc/alternatives/jce_1.8.0_oracle_us_export_policy.x86_64


Initialy links in /etc/alternatives point to following files:
jce_1.8.0_oracle_local_policy.x86_64 -> /usr/lib/jvm-private/java-1.8.0-oracle.x86_64/jce/vanilla/local_policy.jar
and
jce_1.8.0_oracle_us_export_policy.x86_64 -> /usr/lib/jvm-private/java-1.8.0-oracle.x86_64/jce/vanilla/US_export_policy.jar


After update-alternatives ... (see higher links in /etc/alternatives are updated to:
jce_1.8.0_oracle_local_policy.x86_64 -> /opt/UnlimitedJCEPolicyJDK8/local_policy.jar
and
jce_1.8.0_oracle_us_export_policy.x86_64 -> /opt/UnlimitedJCEPolicyJDK8/US_export_policy.jar

These links (in /etc/alternatives) keep their target after update.

Comment 22 errata-xmlrpc 2018-06-26 20:05:01 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.

https://access.redhat.com/errata/RHBA-2018:2055


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