Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1861222

Summary: java-1.8.0-openjdk conflicts with itself when installing multiple versions (using installonlypkgs) [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Andrew John Hughes <ahughes>
Component: java-1.8.0-openjdkAssignee: OpenJDK QA <java-qa>
Status: CLOSED ERRATA QA Contact: jiri vanek <jvanek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: amarecek, jandrlik, jreznik, jvanek
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: java-1.8.0-openjdk-1.8.0.265.b01-1.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 21:18:11 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:

Description Andrew John Hughes 2020-07-28 05:58:35 UTC
This bug was initially created as a copy of Bug #1831665

I am copying this bug because: 

Being fixed with the 8u265 update in all RHEL 8 z-streams, so should include with RHEL 7.9 0day for consistency.

Description of problem:
Setting installonlypkgs for java-1.8.0 packages results in file conflicts. The steps are provided by our documentation linked in the additional info.

Version-Release number of selected component (if applicable):
- java-1.8.0-openjdk-headless-1:1.8.0.252.b09-2.el8_1.x86_64
- java-1.8.0-openjdk-headless-1:1.8.0.232.b09-2.el8_1.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. vim /etc/yum.conf
installonlypkgs=java-1.8.0-openjdk,java-1.8.0-openjdk-headless,java-1.8.0-openjdk-devel
2. # yum install java-1.8.0-openjdk*1.8.0.252.b09-2.el8_1.x86_64 java-1.8.0-openjdk*1.8.0.232.b09-2.el8_1.x86_64
3.

Actual results:
  file /usr/share/licenses/java-1.8.0-openjdk-headless/THIRD_PARTY_README from install of java-1.8.0-openjdk-headless-1:1.8.0.252.b09-2.el8_1.x86_64 conflicts with file from package java-1.8.0-openjdk-headless-1:1.8.0.232.b09-2.el8_1.x86_64
  file /usr/share/licenses/java-1.8.0-openjdk-devel/THIRD_PARTY_README from install of java-1.8.0-openjdk-devel-1:1.8.0.252.b09-2.el8_1.x86_64 conflicts with file from package java-1.8.0-openjdk-devel-1:1.8.0.232.b09-2.el8_1.x86_64


Expected results:
The packages should not provide conflicting files, or the files should be in the version specific directories.

Additional info:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/installing_updating_and_configuring_java_on_rhel_8/index#installing-multiple-minor-versions-of-openjdk-on-rhel_installing-java-on-rhel-8

Comment 6 jiri vanek 2020-07-30 13:18:12 UTC
eturnign back to java-qa

Comment 10 errata-xmlrpc 2020-09-29 21:18:11 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 (java-1.8.0-openjdk bug fix and enhancement update), 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-2020:4071