-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
/consumers/:username_or_id endpoints incorrectly uri decodes usernames #2721
Comments
@tehbiga please see #2651 as well as this comment: #2681 (comment) Form fields with |
@p0pr0ck5 That is POST data, not URL parameters. Content-Type does not affect this whatsoever. I am doing |
Bah, silly blind me :) You should still be able to retrieve the credential by encoding the |
Unfortunately I tried that in my REST client and through NodeJS. Either the client sends the request with the Edit: CURL seems to leave my Sorry for the noise, I'm surprised that the REST clients are modifying my requests :\ Edit 2: Here are my CURLs for fun:
|
Oh wait, haha @p0pr0ck5 I just realized that only
For now I will work around the one endpoint, but using |
Summary
When requesting a consumer by username (email in our case) params are uri decoded and when
+
is used it decodes to a space. I'm questioning whether or not the param should actually be decoded or not.Note: I added logs to the request, see below.
Steps To Reproduce
+
in username Consumer is successfully created with+
/consumers/:username
Additional Details & Logs
0.10.1
API: Single node.js app that dumps headers as json for testing
Plugins:
Config:
Ubuntu 16.04.2 LTS
The text was updated successfully, but these errors were encountered: