cloudfoundry / cloudfoundry/go-uaa
createUser error message not very helpful, error code not available
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13
- Forks
- 25
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 8
Description
Hi, I am a user of the module, and have faced an issue when trying to call createUser, the following is the error message returned:
An error occurred while calling http://localhost:9090/uaa/Users
I didn't know what was happening until I got to UAA container logs and saw it throwing a duplicated username error.
Not only that, but I see that UAA API have their error code set and also a specific error code for this duplicated case.
Are you willing to expose that error codes to the client for this type of validation? If yes, I am open to contribute to it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the createUser entry point and trace how the UAA response is converted into the returned error. Compare the response with the UAA Users API documentation, then verify that the relevant validation error code is exposed to clients and that the existing createUser behavior remains covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100