Twitter plugin doesn't work with OAuth

Bug #645213 reported by LogicalDash
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kupfer
Incomplete
Wishlist
Unassigned

Bug Description

Twitter implemented a new authentication scheme called OAuth recently. The old one no longer works.

Until the Twitter plugin works with OAuth, it won't be able to send anything to Twitter.

Tags: oauth twitter
Changed in kupfer:
status: New → Confirmed
Revision history for this message
clockworkpc (clockworkpc) wrote :

I hope this helps:

Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer/ui/browser.py", line 1314, in _activate
    self.data_controller.activate()
  File "/usr/share/kupfer/kupfer/core/data.py", line 752, in activate
    res, ret = ctx.run(leaf, action, sobject)
  File "/usr/share/kupfer/kupfer/commandexec.py", line 249, in run
    ret = activate_action(obj, action, iobj)
  File "/usr/share/kupfer/kupfer/commandexec.py", line 74, in activate_action
    return _activate_action_single(obj, action, iobj)
  File "/usr/share/kupfer/kupfer/commandexec.py", line 82, in _activate_action_single
    ret = action.activate(obj)
  File "/usr/share/kupfer/kupfer/plugin/twitter/__init__.py", line 199, in activate
    api.PostUpdate(trunc_message(leaf.object))
  File "/usr/lib/pymodules/python2.6/twitter.py", line 1492, in PostUpdate
    json = self._FetchUrl(url, post_data=data)
  File "/usr/lib/pymodules/python2.6/twitter.py", line 2016, in _FetchUrl
    url_data = opener.open(url, encoded_post_data).read()
  File "/usr/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized

Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

Kupfer uses python-twitter module for this. For OAuth we must use still-developed version of this module and also python-oauth2 module.
I hope new version will be released soon. For now - we must wait.

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Karol, should we disable the twitter plugin in the next release then?

Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

Yes.
Gwibber plugin also support twitter and is more universal. So I thinking about remove twitter plugin completely.

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

I think that sounds good, I'll look at your plugin. Kupfer should integrate other applications, not implement a twitter client itself. :-)

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

The twitter plugin is now disabled in Kupfer's development version, we'll remove in the next release if nothing unexpected happens.

Other possibilities for twitter integration are pending (Gwibber, Pidgin integration).

Changed in kupfer:
importance: Undecided → Wishlist
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.