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

Project sync fails when remote archive has query params in URL #15860

Open
5 of 11 tasks
FelipeAFV opened this issue Feb 24, 2025 · 0 comments
Open
5 of 11 tasks

Project sync fails when remote archive has query params in URL #15860

FelipeAFV opened this issue Feb 24, 2025 · 0 comments

Comments

@FelipeAFV
Copy link

FelipeAFV commented Feb 24, 2025

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

The project sync fails when URL in remote archive has query params. I think this is due to the quote filter in the Get archive from url task in awx/awx/playbooks
/project_update.yml . When the url has query params the download fails because the url has an extra single quotes.

TASK [Get archive from url] ****************************************************
fatal: [localhost]: FAILED! => {"changed": false, "dest": "/var/lib/awx/projects/_8__test_s3/.archive/", "elapsed": 0, "gid": 1000, "group": "1000", "mode": "0755", "msg": "Request failed: <urlopen error unknown url type: 'http>", "owner": "root", "size": 4096, "state": "directory", "uid": 0, "url": "'http://$encrypted$:$encrypted$/awx/playbooks2.tar.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=S3user1%2F20250224%2Fdefault%2Fs3%2Faws4_request&X-Amz-Date=20250224T192953Z&X-Amz-Expires=90000&X-Amz-SignedHeaders=host&X-Amz-Signature=fca508db2f8428fb2f5091e9ee80981f5734c7169c483d69e23f7cd4b111cb3d'"}

AWX version

24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Create a project adding a remote archive as an SCM, with a url that contains query params

Expected results

The url gets parsed correctly even when url has query params

Actual results

Error when downloading from url due to extra single quotes

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant