[Bug 1870077] Re: python-pysaml ftbfs in focal
James Page
james.page at ubuntu.com
Fri Apr 3 10:19:28 UTC 2020
Picked upstream commit to update test metadata to expire in 2999
** Changed in: python-pysaml2 (Ubuntu)
Status: In Progress => Fix Committed
** Changed in: python-pysaml2 (Ubuntu)
Milestone: None => ubuntu-20.04
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-pysaml2 in Ubuntu.
https://bugs.launchpad.net/bugs/1870077
Title:
python-pysaml ftbfs in focal
Status in python-pysaml2 package in Ubuntu:
Fix Committed
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pysaml2/+bug/1870077/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list