Error while creating share from nautilus - _create_share_http in action_queue.py, line 1859 calls callback with missing parameters

Bug #492100 reported by Roman Yepishev
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
Natalia Bidart
ubuntuone-client (Ubuntu)
Fix Released
Medium
dobey
Karmic
Fix Released
Undecided
Unassigned

Bug Description

FIXES:
For those not using NetworkManager and are on Karmic, the fix for this bug is in proposed updates. To install proposed updates, please read this FAQ: https://answers.edge.launchpad.net/ubuntuone-client/+faq/930

For those on Jaunty, please update to the latest version of the client and this should work.

--------------------------------------

STEPS TO REPRODUCE/TEST:

1. Open Internet->Applications->Ubuntu One
2. Open Places->Ubuntu One
3. Right-click on folder and select "Share on Ubuntu One..."
4. Fill in fields:
   Share with (e-mail): valid-email-address
   Share name: name-of-share
5. Click the "Share" button

Result: ~/.cache/ubuntuone/log/syncdaemon.log has an entry of: exceptions.TypeError: callback() takes exactly 2 arguments (1 given)

Expected result: No visible errors or related errors logged in ~/.cache/ubuntuone/log/syncdaemon.log

--------------------------------------

ORIGINAL DESCRIPTION:

This is an error in syncdaemon, not nautilus-ubuntuone.

If the patch fixing #491777 is applied then the user is greeted with the following message:

Error creating share.
There was an error sharing the folder '$folder':
callback() takes exactly 2 arguments (1 given)

syncdaemon.log contains the following.
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 497, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/action_queue.py", line 1859, in _create_share_http
    deferred.callback()
exceptions.TypeError: callback() takes exactly 2 arguments (1 given)

Related branches

Revision history for this message
Roman Yepishev (rye) wrote :
dobey (dobey)
Changed in ubuntuone-client:
assignee: nobody → Naty Bidart (nataliabidart)
status: New → In Progress
importance: Undecided → High
Changed in ubuntuone-client (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Medium
status: New → In Progress
dobey (dobey)
tags: added: ubuntuone-sru
Changed in ubuntuone-client:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted ubuntuone-client into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in ubuntuone-client (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Tested proposed update on a fresh Karmic install with all standard updates & proposed updates for ubuntuone-client & dependent packages. Ran steps to reproduce and got expected result - PASSED.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-client - 1.0.3-0ubuntu1

---------------
ubuntuone-client (1.0.3-0ubuntu1) karmic-proposed; urgency=high

  * New upstream release
    - Remove patch files now in upstream for #462828
    - Require python-ubuntuone-storageprotocol >= 1.0.1
    - BadTransition: SYS_CONNECTION_MADE (LP: #457147)
    - ValueError: invalid literal for int() with base 10: 'None' (LP: #476777)
    - Protocol version error with bw throttling enabled (LP: #455544)
    - Folder deletion from other machines results in conflicts (LP: #462003)
    - Syncdaemon doesn't disable throttling (LP: #483592)
    - Syncdaemon crashes with NoAccessToken (LP: #488413)
    - Error creating share from Nautilus: callback() (LP: #492100)
    - Work without NetworkManager installed (LP: #357395)
    - Create a POT during the build (LP: #455527)
    - Bring back timestamps in oauth-login.log (LP: #459175)
    - Applet starts syncdaemon without a token (LP: #491573)
    - Prefs changes don't take immediate affect (LP: #457564)
    - BW limit settings don't appear to be saved (LP: #465030)
    - Distinguish auth errors from other errors (LP: #450633)
    - Fix for running on python < 2.6.3 (LP: #451670)
 -- Rodney Dawes <email address hidden> Fri, 11 Dec 2009 15:45:52 -0500

Changed in ubuntuone-client (Ubuntu Karmic):
status: Fix Committed → Fix Released
Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
dobey (dobey)
Changed in ubuntuone-client (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
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.