-
Notifications
You must be signed in to change notification settings - Fork 62
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
Comments
I’ll check this out and get back to you. Thanks!
…On Thu, Dec 16, 2021 at 9:29 AM Iain Brighton ***@***.***> wrote:
*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
<VirtualEngine@e67af0e>
and I am happy to submit a pull request if the code meets your
requirements/expectations.
Thanks,
Iain
—
Reply to this email directly, view it on GitHub
<#16>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADC6QFSLYUNLZ46FH4IOTDTURIAXPANCNFSM5KGTK7FQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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
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, theWebFile.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
The text was updated successfully, but these errors were encountered: