postoditacco / friendfeed-api

Automatically exported from code.google.com/p/friendfeed-api
0 stars 0 forks source link

Search API fails with "sanitized" URIs #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The search API (http://friendfeed.com/api/feed/search) fails with
"sanitized" URIs--URIs where certain symbols have been translated into
codes, e.g., ":" to "%3A", "+" to "%2B". (One can get these translations
via Python's urllib.quote_plus().)

Example:

Compare the following results:
curl -u "username:remotekey"
"http://friendfeed.com/api/feed/search?q=from%3Amndoci%2Bcomment%3Anuin%2Blikes%
3A10"

vs.

curl -u "username:remotekey"
"http://friendfeed.com/api/feed/search?q=from:mndoci+comment:nuin+likes:10"

In the former, the users who posted and commented on the entries are
random; in the latter, we get the expected result of entries posted by user
'mndoci' and commented on by user 'nuin'.

In particular, it seems to be a lack of decoding the "+" symbol from "%2B", as

curl -u "username:remotekey"
"http://friendfeed.com/api/feed/search?q=from%3Amndoci+comment%3Anuin+likes%3A10
"

gives the expected result, too.

Best,
Chris

Original issue reported on code.google.com by chris.la...@gmail.com on 4 Jun 2009 at 9:00