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

[bp-2.10] get_url - Allow checksum file to be local file:// #75052

Merged
merged 1 commit into from Jul 9, 2021

Conversation

Akasurde
Copy link
Member

SUMMARY

This would be a partial solution for #69364 in that the
SHASUMS file can be downloaded and gpg verified but then
used from the downloaded location to verify the get_url's file.

  • Make checksum url parsing more explicit

Use urlsplit to test if the checksum string has a (currently tested and) supported url scheme.

  • Fix whitespace
  • Changelog fragment
  • Added tests
  • Fix typo in test setup

(cherry picked from commit eb8b3a8)

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

changelogs/fragments/71205_get_url_allow_checksum_file_url.yml
lib/ansible/modules/get_url.py
test/integration/targets/get_url/tasks/main.yml

This would be a partial solution for ansible#69364 in that the
SHASUMS file can be downloaded and gpg verified but then
used from the downloaded location to verify the get_url's file.

* Make checksum url parsing more explicit

Use urlsplit to test if the checksum string has a (currently tested and) supported url scheme.

* Fix whitespace
* Changelog fragment
* Added tests
* Fix typo in test setup

(cherry picked from commit eb8b3a8)
@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 18, 2021
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jun 26, 2021
@Akasurde Akasurde closed this Jul 3, 2021
@Akasurde Akasurde deleted the backport/2.10/71205 branch July 3, 2021 13:44
@Akasurde Akasurde restored the backport/2.10/71205 branch July 3, 2021 13:45
@Akasurde Akasurde reopened this Jul 3, 2021
@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jul 3, 2021
@relrod relrod merged commit e0cb067 into ansible:stable-2.10 Jul 9, 2021
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Jul 15, 2021
@ansible ansible locked and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants