u1sdtool crashes when publishing a file that's not synced

Bug #717119 reported by Roberto Alsina
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Confirmed
Undecided
Guillermo Gonzalez

Bug Description

If you try to publish a file that is not inside ~/Ubuntu One, ui1sdtool crashes:

$ u1sdtool --publish-file=/home/ralsina/xxx

Oops, an error ocurred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 949, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 939, in _inlineCallbacks
    deferred.errback()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 345, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 424, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/bin/u1sdtool", line 141, in <lambda>
    d.addErrback(lambda failure: show_error(failure, out))
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/linux/tools.py", line 831, in show_error
    raise error.value
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/platform/linux/dbus_interface.py", line 935, in get_metadata
    mdobj = self.fs_manager.get_by_path(real_path)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/filesystem_manager.py", line 745, in get_by_path
    mdid = self._idx_path[path]
KeyError: '/home/ralsina/xxx'

Revision history for this message
Duane Hinnen (duanedesign) wrote :

I have tested and can confirm.

ubuntuone-client:
  Installed: 1.5.4-0ubuntu1
  Candidate: 1.5.4-0ubuntu1
  Version table:
 *** 1.5.4-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

thank you,
duanedesign

Changed in ubuntuone-client:
status: New → Confirmed
Revision history for this message
Cris Dywan (kalikiana) wrote :

Not a crash here, but an opaque error message. From what I gather it means "filename unknown".

$ u1sdtool --publish-file=/tmp/debug.log

Oops, an error ocurred:
need more than 0 values to unpack

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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