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

Get-GuacUser doesn't work because of an extra slash. #5

Closed
jasampson opened this issue Aug 10, 2020 · 1 comment
Closed

Get-GuacUser doesn't work because of an extra slash. #5

jasampson opened this issue Aug 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jasampson
Copy link

It looks like you've got an extra slash in line 34 of Get-GuacUser.ps1, which is causing malformed URLs to be used when calling the API resulting in HTTP 500 errors.

You should change this:

    begin
    {
        $Uri = "$Server/api/session/data/$($DataSource)/users/$($Username)/"

        if ($Details)
        {
            $Uri = "$Uri/$Details"
        }

to this (notice the first $Uri = line and the removal of the last slash on the right):

    begin
    {
        $Uri = "$Server/api/session/data/$($DataSource)/users/$($Username)"

        if ($Details)
        {
            $Uri = "$Uri/$Details"
        }

Also, huge thank you for sharing your awesome powershell module with the world.

@UpperM UpperM closed this as completed in b412e7e Aug 11, 2020
@UpperM
Copy link
Owner

UpperM commented Aug 11, 2020

Thank it's fix.

@UpperM UpperM added the bug Something isn't working label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants