-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
Our process to automatically invite new users started failing after latest release 2.26.0 of Microsoft.Graph.Identitiy.SignIns
Cmdlet ->
New-MgInvitation -InvitedUserEmailAddress "[email protected]" -InviteRedirectUrl "https://portal.azure.com"
was working fine in previous version on both Windows and Linux.
Current version 2.26.0 is working fine on Windows, but on Ubuntu you introduce some bug which is removing slashes (//) from InviteRedirectUrl. It's even removing all of them so if you pass url https:////////portal.azure.com it will remove all of them.
Example: Url "https://portal.azure.com" is sent to Api as "https:portal.azure.com", looks like some validator or some other function is removing them before sending.
Same issue is happening when you use -Body param instead of InviteRedirectUrl.
Expected behavior
Should work same on both environments as it was in version 2.25.0
How to reproduce
- Execute New-MgInvitation -InvitedUserEmailAddress "[email protected]" -InviteRedirectUrl "https://portal.azure.com" on linux environment.
SDK Version
2.26.0
Latest version known to work for scenario above?
2.25.0
Known Workarounds
I downgraded version of Microsoft.Graph.Identity.SignIns to 2.25.0 in my pipeline
Debug output
Execute Debug command
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://graph.microsoft.com/v1.0/invitations
Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Linux; Ubuntu 22.04.5 LTS; ),PowerShell/7.4.7
SdkVersion : graph-powershell/2.26.0
client-request-id : 89d0733b-5359-48ef-9d35-7aaa6be9dd6e
Accept-Encoding : gzip,deflate,b
Body:
{
"invitedUserEmailAddress": "[email protected]",
"inviteRedirectUrl": "https:portal.azure.com"
}
Configuration
Name Value
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Ubuntu 20.04 LTS
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I also tested on Ubuntu 22.04
Other information
No response