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

ImageFileUrl error with URL query parameters #16

Closed
iainbrighton opened this issue Dec 16, 2021 · 2 comments
Closed

ImageFileUrl error with URL query parameters #16

iainbrighton opened this issue Dec 16, 2021 · 2 comments

Comments

@iainbrighton
Copy link

Describe the bug
When downloading an image from a URL using the ImageFileUrl parameter, if the URL contains a query string i.e. an Azure file with a SAS token, the WebFile.ps1 script throws an error. In short, the query parameters are not removed and end up being included in the local destination filename - which is invalid.

To Reproduce
Run Start-OSDCloud -ImageFileUrl "<Any_URL_with_query_parameters>"

Expected behavior
I would expect the URL query parameters to be removed/not included in the local file

I have fixed the problem in a fork and I am happy to submit a pull request if the code meets your requirements/expectations.

Thanks,
Iain

@OSDeploy
Copy link
Owner

OSDeploy commented Dec 16, 2021 via email

@OSDeploy
Copy link
Owner

This looks and worked great. I added this to the code for the next release (days) and appreciate the effort. David

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

No branches or pull requests

2 participants