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 1386424 - Fix packaging duplicates of classes in multiple jar files
Summary: Fix packaging duplicates of classes in multiple jar files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: 7.4
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks: 1390311
TreeView+ depends on / blocked
 
Reported: 2016-10-18 22:28 UTC by Matthew Harmsen
Modified: 2020-10-04 21:17 UTC (History)
12 users (show)

Fixed In Version: pki-core-10.4.0-1.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1390311 (view as bug list)
Environment:
Last Closed: 2017-08-01 22:48:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 2625 0 None None None 2020-10-04 21:17:15 UTC
Red Hat Product Errata RHBA-2017:2110 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2017-08-01 19:36:59 UTC

Description Matthew Harmsen 2016-10-18 22:28:30 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/pki/ticket/2505

It was recently discovered that a number of classes defined under "org" are packaged in the 'pki-cms.jar' file as well as individual PKI subsystem files.

Comment 1 Matthew Harmsen 2016-10-18 22:31:07 UTC
Fixed in master (10.4):
* d47733f8f9b01b04ef1970754133befa25955c9d

Comment 2 Matthew Harmsen 2016-10-18 22:37:16 UTC
> Check-ins from https://fedorahosted.org/pki/ticket/2505 - Fix packaging
> duplicates of classes in multiple jar files
> 
> edewata - Fixed in master (10.4):
> 
> * d47733f8f9b01b04ef1970754133befa25955c9d

QE - This particular check-in does not require any testing as it is
     a simple build-time fix which stopped duplicate classes being
     stored in pki-cms.jar and pki-<subsystem>.jar.

Optionally, if you still require simple sanity checking, you can perform the following:

# cd /usr/share/java/pki

# unzip -l pki-ca.jar > pki-ca.jar.manifest
# unzip -l pki-kra.jar > pki-kra.jar.manifest
# unzip -l pki-ocsp.jar > pki-ocsp.jar.manifest
# unzip -l pki-tks.jar > pki-tks.jar.manifest
# unzip -l pki-tps.jar > pki-tps.jar.manifest
# unzip -l pki-cms.jar > pki-cms.jar.manifest

# grep -F -x -f pki-cms.jar.manifest pki-ca.jar.manifest
   Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

# grep -F -x -f pki-cms.jar.manifest pki-kra.jar.manifest 
  Length      Date    Time    Name
---------  ---------- -----   ----
      156  01-01-1980 00:00   META-INF/MANIFEST.MF
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

# grep -F -x -f pki-cms.jar.manifest pki-ocsp.jar.manifest 
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

# grep -F -x -f pki-cms.jar.manifest pki-tks.jar.manifest 
  Length      Date    Time    Name
---------  ---------- -----   ----
      156  01-01-1980 00:00   META-INF/MANIFEST.MF
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

# grep -F -x -f pki-cms.jar.manifest pki-tps.jar.manifest 
  Length      Date    Time    Name
---------  ---------- -----   ----
      156  01-01-1980 00:00   META-INF/MANIFEST.MF
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

Comment 8 Sumedh Sidhaye 2017-04-24 06:41:33 UTC
[root@pki1 pki]# rpm -qi pki-ca
Name        : pki-ca
Version     : 10.4.1
Release     : 1.el7
Architecture: noarch
Install Date: Monday 17 April 2017 01:30:34 AM EDT
Group       : System Environment/Daemons
Size        : 2290188
License     : GPLv2
Signature   : RSA/SHA256, Wednesday 29 March 2017 05:16:22 PM EDT, Key ID 199e2f91fd431d51
Source RPM  : pki-core-10.4.1-1.el7.src.rpm
Build Date  : Wednesday 29 March 2017 03:57:21 PM EDT
Build Host  : ppc-043.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://pki.fedoraproject.org/
Summary     : Certificate System - Certificate Authority

[root@pki1 pki]# unzip -l pki-ca.jar > pki-kra.jar.manifest
[root@pki1 pki]# unzip -l pki-kra.jar > pki-kra.jar.manifest
[root@pki1 pki]# unzip -l pki-ocsp.jar > pki-ocsp.jar.manifest
[root@pki1 pki]# unzip -l pki-tks.jar > pki-tks.jar.manifest
[root@pki1 pki]# unzip -l pki-tps.jar > pki-tps.jar.manifest
[root@pki1 pki]# unzip -l pki-cms.jar > pki-cms.jar.manifest

[root@pki1 ~]# cd /usr/share/java/pki

[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-tks.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------
[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-ca.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/legacy/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------
[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-kra.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
      153  01-01-1980 00:00   META-INF/MANIFEST.MF
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/legacy/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------
[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-ocsp.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------
[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-tks.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   com/
        0  01-01-1980 00:00   com/netscape/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------
[root@pki1 pki]# grep -F -x -f pki-cms.jar.manifest pki-tps.jar.manifest
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   META-INF/
        0  01-01-1980 00:00   org/
        0  01-01-1980 00:00   org/dogtagpki/
        0  01-01-1980 00:00   org/dogtagpki/server/
---------                     -------

Comment 9 errata-xmlrpc 2017-08-01 22:48:25 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-2017:2110


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