Skip to content

_FetchUrl() truncates extra parameter #7

Description

@GoogleCodeExporter
_FetchUrl() expects all parameters to be in the 'parameters' variable.
Unfortunately, the python-twitter module sometimes passes parameters
already attached to the url string. These parameters get truncated during
the call to _FetchUrl().

For example, the url string provided may look this like:
http://twitter.com/statuses/user_timeline.json?screen_name=101010

I am attaching a modified oauthtwitter.py which preserves any parameters
already attached to the url string.

I understand this may be more of an issue with python-twitter, but the fix
was far easier to make in oauth-python-twitter.

Thanks,
Andrew

Steps to reproduce:

1. create an OAuthApi instance:
oauth_api = oauthtwitter.OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)

2. get a public user timeline for someone other than the authenticated user:
oauth_api.GetUserTime(USERNAME, since_id=since_id)

3. observe user timeline returned belongs to the authenticated user, not
the one specified by USERNAME

Original issue reported on code.google.com by andrewse...@gmail.com on 9 Nov 2009 at 6:25

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions