Description of problem: When Checking the RHEL 8, we see two Java 1.8 and Java 11 are installed, By looking at the requirements we saw that both are dependencies of Candlepin. Why older java 1.8 is still being needed on RHEL 8? Multiple java versions are not good from the security point of view. [root@satellite ~]# rpm -q --requires tomcatjss apache-commons-lang3 java-1.8.0-openjdk-headless jpackage-utils >= 0:1.7.5-15 jss >= 4.9.0 jss < 5.0.0 pki-servlet-engine >= 1:9.0.7 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 slf4j slf4j-jdk14 [root@satellite ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.6 (Ootpa) [root@satellite ~]# rpm -q --requires candlepin /usr/bin/bash /usr/libexec/platform-python config(candlepin) = 4.1.14-1.el8sat java-11 >= 1:11.0.0 javapackages-tools rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 tomcatjss >= 7.2.1-7.1 wget Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: root@satellite ~]# rpm -q --requires tomcatjss apache-commons-lang3 java-1.8.0-openjdk-headless <----------------- jpackage-utils >= 0:1.7.5-15 jss >= 4.9.0 jss < 5.0.0 pki-servlet-engine >= 1:9.0.7 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 slf4j slf4j-jdk14 Expected results: A similar java version or newer java should be used in the tomcatjss package. Additional info:
I see that tomcatjss v7.2 is being used? This is now a very old version, the current version in RHEL 8.6 is v7.7.2. Without seeing a full list of packages it is hard to say exactly what has happened but I would guess that you have a mix of old and new packages; some of which require Java 8 and some of which require Java 11. Can you please confirm this is the case? If it is, then this is non-standard configuration and there is nothing to be done so we can close the ticket.
This is satellite 6.11.4 with candlepin 4.1 and using tomcatjss 7.7.1 as you can see even tomcatjss 7.7.1 is has a hardcoded requirement on java 1.8: ~~~ [cb/Azure] root@li-lc-2751:~# rpm -q satellite candlepin tomcatjss satellite-6.11.4-2.el8sat.noarch candlepin-4.1.14-1.el8sat.noarch tomcatjss-7.7.1-1.module+el8.6.0+13291+248751b1.noarch [cb/Azure] root@li-lc-2751:~# rpm -q --requires tomcatjss apache-commons-lang3 java-1.8.0-openjdk-headless jpackage-utils >= 0:1.7.5-15 jss >= 4.9.0 jss < 5.0.0 pki-servlet-engine >= 1:9.0.7 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 slf4j slf4j-jdk14 [cb/Azure] root@li-lc-2751:~# ~~~