u1sdtool does not support utf-8 symbols in --waiting-meta

Bug #561638 reported by Roman Yepishev
80
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Confirmed
Medium
Ubuntu One Foundations+ team

Bug Description

STR:
1. Add non-latin-1 file to Ubuntu One folder
2. Run u1sdtool --waiting-content, see that it is queued
3. Run u1sdtool --waiting-meta

Expected Results:
Metadata queue list with the file in question

Actual Results:
rtg@lucidity:~$ u1sdtool --waiting-content
operation='Upload' node_id='03dc764c-57f9-49f8-ae52-66f70ce9debc' share_id='' path='/home/rtg/Ubuntu One/тестування.deb'
rtg@lucidity:~$ u1sdtool --waiting-meta

Oops, an error ocurred:
Traceback (most recent call last):
Failure: dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeEncodeError: 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/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 203, in waiting_metadata
  waiting_metadata.append(str(cmd))
File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/action_queue.py", line 1430, in __str__
  for attr in str_attrs]
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)

Roman Yepishev (rye)
Changed in ubuntuone-client:
assignee: nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+)
tags: added: chicharra foundations+
Changed in ubuntuone-client:
status: New → Confirmed
Revision history for this message
Rick McBride (rmcbride) wrote :

Got similar while syncing my test suite FS. (lots and lots of Chinese and Japanese characters)

Traceback (most recent call last):
Failure: dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeEncodeError: 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/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 204, in waiting_metadata
    waiting_metadata.append(str(cmd))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/action_queue.py", line 1442, in __str__
    for attr in str_attrs]
UnicodeEncodeError: 'ascii' codec can't encode character u'\u5bd5' in position 0: ordinal not in range(128)

Revision history for this message
Rick McBride (rmcbride) wrote :

sync, for me is unaffected. Interesting that the AQ handler is called out. I wonder where else this might cause issues...

tags: added: chicharra-maverick
Changed in ubuntuone-client:
importance: Undecided → Medium
tags: added: chicharra-natty
removed: chicharra-maverick
tags: added: chicharra-oneiric
removed: chicharra-natty
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.