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