dawoudt / twitcurl

Automatically exported from code.google.com/p/twitcurl
0 stars 0 forks source link

oauth lib incompatibility #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Sending certain characters to twitter API (Any character that has to be 
percent encoding, except the blank space?).

What is the expected output? What do you see instead?
I'd expect twitter's server to accept my oauth signature but it hits me in the 
face instead.

What version of the product are you using? On what operating system?
r88, this problem applies to both linux and wii (through devkitpro)

Please provide any additional information below.
The problem can be fixed by removing the urlencode() calls within 
buildOAuthRawDataKeyValPairs() in oauth.cpp.

That is (according to https://dev.twitter.com/docs/auth/creating-signature ) 
how twitter says we have to do it. I don't know (did not check) if that's how 
the oauth spec says it should be done but it is clearly how it works with 
twitter.

Did you write oauthlib.cpp?

Original issue reported on code.google.com by paguiar32 on 22 Jun 2012 at 5:10

GoogleCodeExporter commented 8 years ago
You're right. New method added in r88 resulted in double urlencoding of status 
message string. Fixed in r99. Thanks :)

Original comment by swatkat....@gmail.com on 21 Jul 2012 at 7:41