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

Fix failing get_safe_url tests for latest Python 3.8 and 3.9 #31766

Merged
merged 1 commit into from Jun 7, 2023

Commits on Jun 7, 2023

  1. Fix failing get_safe_url tests for latest Python 3.8 and 3.9

    The latest release of Python 3.8 and 3.9 have been just released
    that contain the fix to a security vulnerability backported to
    those versions:
    
    python/cpython#102153
    
    Release notes:
    * https://www.python.org/downloads/release/python-3817/
    * https://www.python.org/downloads/release/python-3917/
    
    The fix improved sanitizing of the URLs and until Python 3.10 and
    3.11 get released, we need to add the sanitization ourselves to
    pass tests on all versions.
    
    In order to improve security of airflow users and make the tests
    work regardless whether the users have latest Python versions
    released, we add extra sanitisation step to the URL to apply
    the standard WHATWG specification.
    potiuk committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    cb8b4da View commit details
    Browse the repository at this point in the history