DescriptionThe ALLOWED_PARAM_NAME used in OAuthRequest.allowParam to check against parameter name after being decoded from call to Oauth.decodeForm().
So if space is in the query parameter name is encoded correctly with "+" or "%20", eg: submit+job", the call to OAuth.sanitize(List<Parameter> params) will be decoded by OAuth.decodeForm method hence the param name to "submit job" which will cause it to fail pattern match.
This query parameter name (with space) is legal since it will be later be encoded when signing the OAuthRequest inside OAuthSignature.getBaseString.
Adding space as allowed character in the OAuthRequest.ALLOWED_PARAM_NAME.
Patch Set 1 #
MessagesTotal messages: 2
|
|||||||||||||||||||