Default PortalUrl to https when no scheme is supplied #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/portalurl-missing-scheme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
A scheme-less
-PortalUrl(for examplemb-reports.corp.teranet.ca/reports) caused all three SSRS scripts to build a relativeapiBase.[Uri].Hostthen returned empty (the blank "Server host :" line) andInvoke-RestMethodfailed with "This operation is not supported for a relative URI."This change normalizes
-PortalUrlinDeploy-,Download-, andRemove-SsrsFolderItems.ps1: when the URL has nohttp(s)scheme,https://is prepended. Explicithttp:///https://URLs are unaffected. The README parameter tables now document the assumed scheme.How was this tested?
[System.Management.Automation.Language.Parser]::ParseFile()- 0 errors each.mb-reports.corp.teranet.ca/reportsbecomeshttps://mb-reports.corp.teranet.ca/reports,[Uri].Hostresolves tomb-reports.corp.teranet.ca, andapiBaseis a valid absolute URI.Checklist
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.