Opened 18 months ago

#71837 new defect

p5.34-net-ssleay @1.940.0 fails tests due to use of an incorrect eMail address syntax

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc:
Port: p5-net-ssleay

Description

Testing reveals:

t/local/31_rsa_generate_key.t ............... ok

#   Failed test 'X509V3_EXT_print nid=86	extended-cert.cert.pem:6'
#   at t/local/32_x509_get_cert_info.t line 273.
#          got: 'email:intermediate-ca@net-ssleay.example, URI:http://intermediate-ca.net-ssleay.example, DNS:intermediate-ca.net-ssleay.example, Registered ID:1.2.0.0, IP Address:192.168.0.1, IP Address:FD25:F814:AFB5:9873:0:0:0:1, othername: emailAddress:ica@net-ssleay.example'
#     expected: 'email:intermediate-ca@net-ssleay.example, URI:http://intermediate-ca.net-ssleay.example, DNS:intermediate-ca.net-ssleay.example, Registered ID:1.2.0.0, IP Address:192.168.0.1, IP Address:FD25:F814:AFB5:9873:0:0:0:1, othername: emailAddress::ica@net-ssleay.example'

#   Failed test 'X509V3_EXT_print nid=85	extended-cert.cert.pem:8'
#   at t/local/32_x509_get_cert_info.t line 273.
#          got: 'email:john.doe@net-ssleay.example, URI:http://johndoe.net-ssleay.example, DNS:johndoe.net-ssleay.example, Registered ID:1.2.3.4, IP Address:192.168.0.2, IP Address:FD25:F814:AFB5:9873:0:0:0:2, othername: emailAddress:jd@net-ssleay.example'
#     expected: 'email:john.doe@net-ssleay.example, URI:http://johndoe.net-ssleay.example, DNS:johndoe.net-ssleay.example, Registered ID:1.2.3.4, IP Address:192.168.0.2, IP Address:FD25:F814:AFB5:9873:0:0:0:2, othername: emailAddress::jd@net-ssleay.example'
# Looks like you failed 2 tests of 746.
t/local/32_x509_get_cert_info.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/746 subtests 
t/local/33_x509_create_cert.t ............... ok

The case is handled on GitHub here: https://github.com/radiator-software/p5-net-ssleay/issues/494. Jacob Mellichamp's solution leads to a patch file attached to this issue.

Attachments (1)

patch-fix-email-address.diff (381 bytes) - added by ballapete (Peter "Pete" Dyballa) 18 months ago.
Patch to fix test with incorrect eMail address

Download all attachments as: .zip

Change History (1)

Changed 18 months ago by ballapete (Peter "Pete" Dyballa)

Patch to fix test with incorrect eMail address

Note: See TracTickets for help on using tickets.