Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Allowing http redirects. #118

Open
SolRosenberg opened this issue Jan 13, 2016 · 2 comments
Open

Allowing http redirects. #118

SolRosenberg opened this issue Jan 13, 2016 · 2 comments

Comments

@SolRosenberg
Copy link

Request for change to provide option for allowing Imagr instances to follow redirects. Redirect option similar to munki would suffice (although I myself only require an all redirects scenario).

Tested as working on Imagr build 0.0.5 by changing line 276 in Utils.py to:

headers = get_url(url, temp_file, follow_redirects=True, additional_headers=additional_headers)

Graham mentioned the possibility of issues with ASR and/or hdiutil so if this is to be implemented this should be tested heavily. I only require this for Imagr's initial grabbing of the imagr_config.plist file. My testing does not go beyond Imagr grabbing the imagr_config file i.e. I am not running workflows whose payloads are grabbed via redirected URLs.

@grahamgilbert
Copy link
Collaborator

I'm pretty sure ASR and hdiutil won't work with redirects - they're both pretty basic. But assuming were talking only the initial config plist, I would say we would need to:

  • Expose this as a preference with the default being OFF
  • Have the option to restrict redirects to only valid HTTPS URLs if desired (much the same as I did for Munki)

This isn't going to make the 1.0 release (because that's happening now), but I will take pull requests for it. It's on my list, but since I don't need this, other things are higher.

@SolRosenberg
Copy link
Author

Can we have a help wanted label added to this?

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

No branches or pull requests

2 participants