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 1109769 - Rebase python-nss to 0.15
Summary: Rebase python-nss to 0.15
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-nss
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: John Dennis
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks: 1082754
TreeView+ depends on / blocked
 
Reported: 2014-06-16 10:39 UTC by Martin Kosek
Modified: 2015-03-05 10:26 UTC (History)
2 users (show)

Fixed In Version: python-nss-0.15.0-1.el7
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:26:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0443 0 normal SHIPPED_LIVE python-nss bug fix and enhancement update 2015-03-05 15:05:15 UTC

Description Martin Kosek 2014-06-16 10:39:06 UTC
Rebase python-nss to 0.15 as it contains CSR extension parsing fixes critical for IPA 4.0 (rebase Bug 1109726).

Comment 1 John Dennis 2014-06-16 13:26:28 UTC
package changes are done, we just need the ACK's

Comment 3 John Dennis 2014-07-14 15:47:53 UTC
re comment #2

Hi Karel

The changes for any given release are always documented in the ChangeLog. This is installed with the main package under /usr/share/doc/python-nss*/ChangLog or in the source tree under doc/ChangeLog. I've included the 0.15.0 section below. A unit test (test_cert_request.py) was added to exercise the bug and the new functionality. I don't see any major risk, this is mostly characterized as a bug fix due to inadequences in NSS itself that we can work around inside the Python binding. Given there is a unit test to cover changes restricted to one small area I feel the risk is small. I'll comment on the test plan in a seperate comment.

2014-01-29  John Dennis  <jdennis> 0.15.0

  External Changes
  ----------------

  The primary enhancements in this version is fixing access to extensions
  in a CertificateRequest and giving access to CertificateRequest attributes.
  There is a bug in NSS which hides the existence of extensions in a
  CSR if the extensions are not contained in the first CSR
  attribute. This was fixable in python-nss without requiring a patch
  to NSS. Formerly python-nss did not provide access to the attributes
  in a CSR only the extensions, with this release all components of a
  CSR can be accessed. See test/test_cert_request.py for examples.

  * Add ability to read PEM data from a string.

  * Add more build instructions to README. Source README into package
    long description.

  * A SecItem now converts almost all DER encoded data to a string
    when it's str method is invoked, formerly it was limited to only a
    few objects.

  * The following classes were added:

    - CERTAttribute

  * The following class methods were added:

    - CertAttribute.format_lines
    - CertAttribute.format
    - nss.SecItem.get_integer

  * The following class properties were added:

    - CertificateRequest.attributes
    - CertAttribute.type_oid
    - CertAttribute.type_tag
    - CertAttribute.type_str
    - CertAttribute.values

  * The following module functions were added:

    - base64_to_binary

  * The following files were added:

    - test_cert_request

Comment 6 Karel Srot 2015-01-06 09:26:17 UTC
Hi John,

it seems that the run_tests script is not included in the binary rpm package (but it is present in srpm). Was it excluded intentionally?

Comment 7 John Dennis 2015-01-06 15:31:13 UTC
Hi Karel:

No, it was not intentional the run_tests script is absent. It's a bug in the upstream setup.py install_doc command. The install_doc command has a manifest of files to install specified by a regular expression, the regular expression omitted the run_tests script.

I've patched the manifest to fix the problem. Do you want a new build that includes the run_tests script or is a new build more trouble than it's worth? I can do either.

Also, we're up to python-nss version 0.16.0 in RHEL7 due to bug #1155703, the errata does have the correct 0.16.0 builds.

Comment 9 Karel Srot 2015-01-07 06:52:32 UTC
missing run_tests script reported as bug 1179573.

Comment 13 errata-xmlrpc 2015-03-05 10:26:18 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://rhn.redhat.com/errata/RHBA-2015-0443.html


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