cloudfoundry / cloudfoundry/uaa-cli

uaa-linux-amd64-0.13.0 list-clients returns malformed output

Open
#170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
22
Forks
14
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Hello,
we are trying to move vom uaa ruby client to uaa go client in a corporate environment on Debian Linux 11.8. We can´t use a newer Debian in cause of company guidelines and working as normal user not as root or with sudo.

>> ./uaa-linux-amd64-0.13.0 target https://uaa.restofuaaurl.de
Target set to https://uaa.restofuaaurl.de
>>  ./uaa-linux-amd64-0.13.0 get-client-credentials-token admin -s our_secret_string
Access token successfully fetched and added to context.
./uaa-linux-amd64-0.13.0 list-clients

And now the output is not a wellformed json as expected rathern an malformed output beginning with An unknown error occurred while parsing response from https://uaa ... and ending with json: cannot unmarshal string into Go struct field Client.resources.resource_ids of type []string This occours in all our environments.

Hope the infos are helpful and a fixed version is coming out soon ;)

Thanks in advance & Best regards

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the list-clients command and the reported unmarshal error for Client.resources.resource_ids; inspect how that response is parsed. Reproduce against the reported UAA endpoint or a comparable environment, then verify that list-clients produces well-formed JSON without the parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.