ValueError on dbus_interface when publishing a non uploaded file

Bug #655830 reported by Natalia Bidart
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Won't Fix
Undecided
Guillermo Gonzalez

Bug Description

I added a file to Ubuntu One named "ugly?.png" and I tried to publish it with:

nessita@dali:~$ mv Desktop/ugly\?.png Ubuntu\ One/
nessita@dali:~$ u1sdtool --publish-file=/home/nessita/Ubuntu\ One/ugly\?.png

I got the following trace:

Oops, an error ocurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 949, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 939, in _inlineCallbacks
    deferred.errback()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 345, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 424, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/bin/u1sdtool", line 135, in <lambda>
    d.addErrback(lambda failure: show_error(failure, out))
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/tools.py", line 794, in show_error
    raise error.value
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/dbus_interface.py", line 1675, in change_public_access
    node_id = uuid.UUID(node_id)
  File "/usr/lib/python2.6/uuid.py", line 134, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadecimal UUID string

The file wasn't uploaded yet.

tags: added: chicharra chicharra-natty foundations+
Roberto Alsina (ralsina)
Changed in ubuntuone-client:
assignee: nobody → Guillermo Gonzalez (verterok)
status: New → Fix Committed
tags: added: u1-natty-beta
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
Revision history for this message
Roman Yepishev (rye) wrote :

This happens when file is not uploaded yet. The fastest way to simulate this is to do the following:

$ u1sdtool --disconnect
$ touch ~/Ubuntu\ One/bad-file
$ u1sdtool --publish ~/Ubuntu\ One/bad-file

Current natty+nightlies.

Changed in ubuntuone-client:
status: Fix Released → New
Changed in ubuntuone-client:
status: New → Won't Fix
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.