Closed andmatei closed 1 year ago
As per the old docs:
AWS IAM usernames include characters which must be URL encoded. Replace all : characters with %3A. Replace all / characters with %2F.
https://www.mongodb.com/docs/atlas/reference/api/database-users-get-single-user/#example-request
Using url.PathEscape would only encode / characters, while url.QueryEscape encode both : and /
url.PathEscape
/
url.QueryEscape
:
Link to any related issue(s): https://github.com/mongodb/mongodb-atlas-cli/issues/1817
make fmt
This will also be a problem with the autogenerated SDK - left more comments on the ticket
Description
As per the old docs:
https://www.mongodb.com/docs/atlas/reference/api/database-users-get-single-user/#example-request
Using
url.PathEscape
would only encode/
characters, whileurl.QueryEscape
encode both:
and/
Link to any related issue(s): https://github.com/mongodb/mongodb-atlas-cli/issues/1817
Type of change:
Required Checklist:
make fmt
and formatted my code