python2-pyasn1-0.3.2 (present since F27) fails to parse kerberos principal name
Upstream issue: https://github.com/etingof/pyasn1/issues/76
I found this issue when attempting to run CA-less test on rawhide. It failed with the following traceback:
2017-09-14 18:52:12,044 DEBUG > create_caless_pki.create_pki() 2017-09-14 18:52:12,045 DEBUG 2017-09-14 18:52:12,045 DEBUG test_integration/test_caless.py:144: 2017-09-14 18:52:12,045 DEBUG _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2017-09-14 18:52:12,045 DEBUG test_integration/create_caless_pki.py:543: in create_pki 2017-09-14 18:52:12,045 DEBUG x509.NameAttribute(NameOID.COMMON_NAME, server1) 2017-09-14 18:52:12,045 DEBUG test_integration/create_caless_pki.py:312: in gen_cert 2017-09-14 18:52:12,045 DEBUG builder = profile(builder, ca_nick, ca, **kwargs) 2017-09-14 18:52:12,045 DEBUG test_integration/create_caless_pki.py:242: in profile_kdc 2017-09-14 18:52:12,045 DEBUG name = native_decoder.decode(name, asn1Spec=KRB5PrincipalName()) 2017-09-14 18:52:12,045 DEBUG ../pyasn1/codec/native/decoder.py:158: in __call__ 2017-09-14 18:52:12,045 DEBUG value = valueDecoder(pyObject, asn1Spec, self) 2017-09-14 18:52:12,045 DEBUG ../pyasn1/codec/native/decoder.py:31: in __call__ 2017-09-14 18:52:12,046 DEBUG asn1Value[field] = decoderFunc(pyObject[field], componentsTypes[field].asn1Object) 2017-09-14 18:52:12,046 DEBUG ../pyasn1/codec/native/decoder.py:158: in __call__ 2017-09-14 18:52:12,046 DEBUG value = valueDecoder(pyObject, asn1Spec, self) 2017-09-14 18:52:12,046 DEBUG ../pyasn1/codec/native/decoder.py:31: in __call__ 2017-09-14 18:52:12,046 DEBUG asn1Value[field] = decoderFunc(pyObject[field], componentsTypes[field].asn1Object) 2017-09-14 18:52:12,046 DEBUG ../pyasn1/codec/native/decoder.py:158: in __call__ 2017-09-14 18:52:12,046 DEBUG value = valueDecoder(pyObject, asn1Spec, self) 2017-09-14 18:52:12,046 DEBUG _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2017-09-14 18:52:12,046 DEBUG 2017-09-14 18:52:12,046 DEBUG self = <pyasn1.codec.native.decoder.SequenceOfOrSetOfDecoder object at 0x7f45c52c7e50> 2017-09-14 18:52:12,046 DEBUG pyObject = ['krbtgt', 'IPA.TEST'] 2017-09-14 18:52:12,046 DEBUG asn1Spec = SequenceOf(componentType=GeneralString(), tagSet=TagSet((), Tag(tagClass=0, tagFormat=32, tagId=16), Tag(tagClass=128, tagFormat=32, tagId=1))) 2017-09-14 18:52:12,047 DEBUG decoderFunc = <pyasn1.codec.native.decoder.Decoder object at 0x7f45c52c78d0> 2017-09-14 18:52:12,047 DEBUG 2017-09-14 18:52:12,047 DEBUG def __call__(self, pyObject, asn1Spec, decoderFunc): 2017-09-14 18:52:12,047 DEBUG asn1Value = asn1Spec.clone() 2017-09-14 18:52:12,047 DEBUG 2017-09-14 18:52:12,047 DEBUG for pyValue in pyObject: 2017-09-14 18:52:12,047 DEBUG > asn1Value.append(decoderFunc(pyValue, asn1Spec.componentType.asn1Object)) 2017-09-14 18:52:12,047 DEBUG E AttributeError: 'GeneralString' object has no attribute 'asn1Object' 2017-09-14 18:52:12,047 DEBUG 2017-09-14 18:52:12,047 DEBUG ../pyasn1/codec/native/decoder.py:41: AttributeError
fixed upstream in https://github.com/etingof/pyasn1/commit/218acc52cd4574df07536e1bc81bc1eb7a410573
I'll work on releasing updated packages with this fix.
Metadata Update from @rcritten: - Issue assigned to rcritten
Fixed in rawhide and F-27
https://bodhi.fedoraproject.org/updates/python-pyasn1-0.3.2-2.fc27
Metadata Update from @tkrizek: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1091 - Issue priority set to: major - Issue set to the milestone: FreeIPA 4.6.1
master:
ipa-4-6:
Metadata Update from @tkrizek: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.