Skip to content
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

Search API fails with "sanitized" URIs #25

Open
GoogleCodeExporter opened this issue Mar 20, 2015 · 0 comments
Open

Search API fails with "sanitized" URIs #25

GoogleCodeExporter opened this issue Mar 20, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant