Promote dev to main: default PortalUrl to https when no scheme is supplied #5

Merged
hannah-vernon merged 2 commits from dev into main 2026-08-05 09:26:30 -05:00

What does this PR do?

Promotes the merged dev work to main. Contains one fix (PR #4):

A scheme-less -PortalUrl (for example reports.example.com/reports) caused all three
SSRS scripts to build a relative apiBase. [Uri].Host then returned empty and
Invoke-RestMethod failed with "This operation is not supported for a relative URI."
Deploy-, Download-, and Remove-SsrsFolderItems.ps1 now prepend https:// when the
URL has no http(s) scheme. Explicit http:// / https:// URLs are unaffected. README
parameter tables document the assumed scheme.

Commits

  • 747fecd Default PortalUrl to https when no scheme is supplied

Files changed

  • Deploy-SsrsFolderItems.ps1
  • Download-SsrsFolderItems.ps1
  • Remove-SsrsFolderItems.ps1
  • README.md

Testing

  • All three scripts parse-validated (0 errors).
  • Verified a scheme-less portal URL normalizes to an absolute URI with a resolvable host.

Checklist

  • Changes already reviewed and merged to dev via PR #4
  • Documentation updated (README)
  • No new dependencies
## What does this PR do? Promotes the merged `dev` work to `main`. Contains one fix (PR #4): A scheme-less `-PortalUrl` (for example `reports.example.com/reports`) caused all three SSRS scripts to build a relative `apiBase`. `[Uri].Host` then returned empty and `Invoke-RestMethod` failed with *"This operation is not supported for a relative URI."* `Deploy-`, `Download-`, and `Remove-SsrsFolderItems.ps1` now prepend `https://` when the URL has no `http(s)` scheme. Explicit `http://` / `https://` URLs are unaffected. README parameter tables document the assumed scheme. ## Commits - 747fecd Default PortalUrl to https when no scheme is supplied ## Files changed - Deploy-SsrsFolderItems.ps1 - Download-SsrsFolderItems.ps1 - Remove-SsrsFolderItems.ps1 - README.md ## Testing - All three scripts parse-validated (0 errors). - Verified a scheme-less portal URL normalizes to an absolute URI with a resolvable host. ## Checklist - [x] Changes already reviewed and merged to `dev` via PR #4 - [x] Documentation updated (README) - [x] No new dependencies
A scheme-less -PortalUrl (e.g. mb-reports.corp.teranet.ca/reports) produced a
relative apiBase, so [Uri].Host returned empty and Invoke-RestMethod failed with
'This operation is not supported for a relative URI.'  All three SSRS scripts now
prepend https:// when the URL has no http(s) scheme, and README documents it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reviewed-on: #4
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hannah-vernon/ssrs-tools!5
No description provided.