python-pysaml ftbfs in focal

Bug #1870077 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pysaml2 (Ubuntu)
Fix Released
High
James Page

Bug Description

seen in the second focal test rebuild
https://launchpad.net/ubuntu/+archive/test-rebuild-20200327-focal/+build/18964497/+files/buildlog_ubuntu-focal-amd64.python-pysaml2_4.9.0-0ubuntu2_BUILDING.txt.gz

self = <saml2.mdstore.MetaDataFile object at 0x7ff431baf3d0>
xmlstr = b'<?xml version="1.0" encoding="UTF-8"?>\n<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"\n ....switch.ch/\n </OrganizationURL>\n </Organization>\n </EntityDescriptor>\n</EntitiesDescriptor>\n'

    def parse(self, xmlstr):
        self.entities_descr = md.entities_descriptor_from_string(xmlstr)

        if not self.entities_descr:
            self.entity_descr = md.entity_descriptor_from_string(xmlstr)
            if self.entity_descr:
                self.do_entity_descriptor(self.entity_descr)
        else:
            try:
                valid_instance(self.entities_descr)
            except NotValid as exc:
                logger.error("Invalid XML message: %s", exc.args[0])
                return

            if self.check_validity:
                try:
                    if not valid(self.entities_descr.valid_until):
> raise ToOld(
                            "Metadata not valid anymore, it's only valid "
                            "until %s" % (
                                self.entities_descr.valid_until,))
E saml2.mdstore.ToOld: Metadata not valid anymore, it's only valid until 2020-02-10T09:59:21Z

src/saml2/mdstore.py:559: ToOld
________________________________ test_switch_1 _________________________________

    def test_switch_1():
        mds = MetadataStore(ATTRCONV, sec_config,
                            disable_ssl_certificate_validation=True)

> mds.imp(METADATACONF["5"])

tests/test_30_mdstore_old.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/saml2/mdstore.py:977: in imp
    self.load(key, val)
src/saml2/mdstore.py:963: in load
    _md.load()
src/saml2/mdstore.py:694: in load
    return self.parse_and_check_signature(_txt)
src/saml2/mdstore.py:656: in parse_and_check_signature
    self.parse(txt)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <saml2.mdstore.MetaDataFile object at 0x7ff431e1e160>
xmlstr = b'<?xml version="1.0" encoding="UTF-8"?>\n<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"\n ....switch.ch/\n </OrganizationURL>\n </Organization>\n </EntityDescriptor>\n</EntitiesDescriptor>\n'

    def parse(self, xmlstr):
        self.entities_descr = md.entities_descriptor_from_string(xmlstr)

        if not self.entities_descr:
            self.entity_descr = md.entity_descriptor_from_string(xmlstr)
            if self.entity_descr:
                self.do_entity_descriptor(self.entity_descr)
        else:
            try:
                valid_instance(self.entities_descr)
            except NotValid as exc:
                logger.error("Invalid XML message: %s", exc.args[0])
                return

            if self.check_validity:
                try:
                    if not valid(self.entities_descr.valid_until):
> raise ToOld(
                            "Metadata not valid anymore, it's only valid "
                            "until %s" % (
                                self.entities_descr.valid_until,))
E saml2.mdstore.ToOld: Metadata not valid anymore, it's only valid until 2020-02-10T09:59:21Z

src/saml2/mdstore.py:559: ToOld

Matthias Klose (doko)
Changed in python-pysaml2 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: ftbfs rls-ff-incoming
James Page (james-page)
Changed in python-pysaml2 (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :

Picked upstream commit to update test metadata to expire in 2999

Changed in python-pysaml2 (Ubuntu):
status: In Progress → Fix Committed
milestone: none → ubuntu-20.04
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-pysaml2 - 4.9.0-0ubuntu3

---------------
python-pysaml2 (4.9.0-0ubuntu3) focal; urgency=medium

  * d/p/update-test-metadata-expiration.patch: Cherry pick fix to update
    test metadata expiration to 2999 resolving FTBFS (LP: #1870077).

 -- James Page <email address hidden> Fri, 03 Apr 2020 11:26:41 +0100

Changed in python-pysaml2 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.