-
Notifications
You must be signed in to change notification settings - Fork 933
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
Cannot login to space containing comma sign #1938
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/172891571 The labels on this github issue will be updated when the story is started. |
I'm guessing the CLI is not properly double-encoding the comma in the space name. I'll see if some engineers can look into it. |
belinda-liu
added a commit
that referenced
this issue
Jun 19, 2020
The v3 API requires that the comma character is double encoded when used in a single query parameter. Previously, the CLI would only encode the query request once it was fully formed. This was sufficient for v2, but with the v3 API this would cause issues when using a resource that had commas in its name. This commit now encodes query parameters with the `names` filter before encoding the entire query. This ensures that resource names that may contain commas are properly double encoded. [Github issue #1938](#1938) [#172891571](https://www.pivotaltracker.com/story/show/172891571) Authored-by: Belinda Liu <bliu@pivotal.io>
reidmit
pushed a commit
that referenced
this issue
Jun 29, 2020
The v3 API requires that the comma character is double encoded when used in a single query parameter. Previously, the CLI would only encode the query request once it was fully formed. This was sufficient for v2, but with the v3 API this would cause issues when using a resource that had commas in its name. This commit now encodes query parameters with the `names` filter before encoding the entire query. This ensures that resource names that may contain commas are properly double encoded. [Github issue #1938](#1938) [#172891571](https://www.pivotaltracker.com/story/show/172891571) Authored-by: Belinda Liu <bliu@pivotal.io>
This issue should be fixed in the next release of v7. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
I have a space named
a,b
. When runningcf login -u <user> -o <org> -s "a,b"
, I getSpace 'a,b' not found.
But executingcf target -s "a,b"
succeeds.What happened
See above.
Expected behavior
I expect that both commands (
cf login -s
andcf target -s
) behave the same.To Reproduce
See above.
Provide more context
Adding
-v
to the CF CLI commands shows that forcf login
a call to the V3 API is sent, whereas forcf target
the V2 API is used.The V3 API Docs state that the
names
parameter contains aComma-delimited list of space names to filter by.
- so it seems that the comma sign is causing trouble here...I'm not sure if this is a client (CF CLI) or server (CF API) issue; maybe space names need some special encoding before they are sent to the server. As this issue shows up when using the CF CLI, I decided to open a bug here.
The text was updated successfully, but these errors were encountered: