Windows: UnicodeEncodeError while scanning files

Bug #804043 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Medium
Natalia Bidart

Bug Description

2011-06-30 18:56:07,194 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: FS_FILE_CREATE, kwargs:
 {'path': u'\\\\?\\C:\\Users\\Test\\Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png'}
2011-06-30 18:56:07,194 - ubuntuone.SyncDaemon.HQ.hasher - DEBUG - Hasher: path hash pushed: p
ath=u'\\\\?\\C:\\Users\\Test\\Ubuntu One\\yadda\\no-emblem-at-all.png' hash=sha1:2470827c10fda
08d94797a8f09511f4b77a97355 crc=349593093 size=64325 st_ino=0 st_size=64325 st_mtime=13093
60869.5446
2011-06-30 18:56:07,194 - ubuntuone.SyncDaemon.sync - DEBUG - -:-:- - ['-'::'-'] 'u'\\\\?\\C:\\
Users\\Test\\Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png'' | EVENT: FS_FILE_CREATE:{} with AR
GS:(u'\\\\?\\C:\\Users\\Test\\Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png',)
2011-06-30 18:56:07,194 - ubuntuone.SyncDaemon.sync - INFO - -:-:- - ['-'::'-'] 'u'\\\\?\\C:\\U
sers\\Test\\Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png'' | Calling new_local_file (got FS_FI
LE_CREATE:{})
2011-06-30 18:56:07,197 - ubuntuone.SyncDaemon.fsm - DEBUG - create: path=u'\\\\?\\C:\\Users\\T
est\\Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png' mdid='34f82511-6be1-4f8c-87f0-286aa11d6c16'
 share_id='' node_id=None is_dir=False
2011-06-30 18:56:07,198 - ubuntuone.SyncDaemon.fsm - DEBUG - set mdid='34f82511-6be1-4f8c-87f0-
286aa11d6c16': {'local_hash': '', 'server_hash': ''}
2011-06-30 18:56:07,200 - ubuntuone.SyncDaemon.sync - ERROR - T:NONE:F 34f82511-6be1-4f8c-87f0-286aa11d6c16 ['root'::marker:34f82511-6be1-4f8c-87f0-286aa11d6c16] 'u'Ubuntu One\\yadda\\ugly\u200b\u203d\u200b.png'' | Executing ACTION_FUNC 'new_local_file' gave an exception: UnicodeEncodeError('ascii', u'ugly\u200b\u203d\u200b.png', 4, 7, 'ordinal not in range(128)')
Traceback (most recent call last):
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\fsm\fsm.py", line 137, in on_event
    af(event_name, parameters, *args)
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\sync.py", line 534, in new_local_file
    self.m.action_q.make_file(share_id, parent_id, name, marker, path)
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\action_queue.py", line 1021, in make_file
    name, marker, path).go()
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\action_queue.py", line 1419, in __init__
    self.name = name.decode("utf8")
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-6: ordinal not in range(128)

Related branches

Changed in ubuntuone-client:
assignee: nobody → Manuel de la Pena (mandel)
importance: Undecided → Medium
status: New → Triaged
tags: added: u1-zomg-windows
tags: added: u1-unicode-windows
Changed in ubuntuone-client:
status: Triaged → In Progress
Changed in ubuntuone-client:
assignee: Manuel de la Pena (mandel) → Natalia Bidart (nataliabidart)
Changed in ubuntuone-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
milestone: none → 1.7.1
dobey (dobey)
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.

Other bug subscribers

Remote bug watches

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