Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leading zeros from IPv4 in tests #750

Merged
merged 1 commit into from
May 7, 2021
Merged

Remove leading zeros from IPv4 in tests #750

merged 1 commit into from
May 7, 2021

Conversation

nolar
Copy link
Owner

@nolar nolar commented May 7, 2021

Leading zeros are no longer tolerated since Python 3.10 and 3.9.5 (see https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Address). This was breaking the tests due to a mismatch of the IP addresses in SSL certificates, as they were treated as regular hostnames after this change, and includes "as is" (not compacted).

Changed in version 3.8: Leading zeros are tolerated, even in ambiguous cases that look like octal notation.

Changed in version 3.10: Leading zeros are no longer tolerated and are treated as an error. IPv4 address strings are now parsed as strict as glibc inet_pton().

Changed in version 3.9.5: The above change was also included in Python 3.9 starting with version 3.9.5.

This is a bug in the tests, not in the framework.

@nolar nolar added the automation CI/CD: testing, linting, releasing automatically label May 7, 2021
Leading zeros are no longer tolerated since Python 3.10 and 3.9.5 (see https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Address). This was breaking the tests due to a mismatch of the IP addresses in SSL certificates, as they were treated as regular hostnames after this change, and includes "as is" (not compacted).

Signed-off-by: Sergey Vasilyev <nolar@nolar.info>
@nolar nolar merged commit 45eecf9 into main May 7, 2021
@nolar nolar deleted the compact-ips-in-ssl branch May 7, 2021 07:40
@nolar nolar mentioned this pull request May 7, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD: testing, linting, releasing automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant