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

Issue on Ubuntu / possible other linux distr - New-MgInvitation #3186

Closed
mateuszte opened this issue Feb 26, 2025 · 2 comments
Closed

Issue on Ubuntu / possible other linux distr - New-MgInvitation #3186

mateuszte opened this issue Feb 26, 2025 · 2 comments
Labels
status:duplicate A duplicate issue type:bug A broken experience

Comments

@mateuszte
Copy link

mateuszte commented Feb 26, 2025

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

  1. 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

@mateuszte mateuszte added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Feb 26, 2025
@timayabi2020
Copy link
Contributor

timayabi2020 commented Feb 26, 2025

Hi @mateuszte this issue has been resolved in version 2.26.1. Please update to the latest version. Also closing this as a duplicate of #3154

Image

@timayabi2020 timayabi2020 added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close status:duplicate A duplicate issue and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Feb 26, 2025
@mateuszte
Copy link
Author

Haha, thanks :) yesterday when I found it, there was nothing yet in place and I couldn't find referenced issue. Thanks for quick fix and have a great day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:duplicate A duplicate issue type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants