FIle share tab crashes with invalid filenames

Bug #1042805 reported by Roberto Alsina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Control Panel
Status tracked in Trunk
Stable-4-2
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Low
Diego Sarmentero

Bug Description

If you have, in a UDF, an invalid filename (for example, a ISO-8859-1 filename in Ubuntu, which expects UTF-8), there is a crash in u1cp:

Traceback (most recent call last):
  File "/home/ralsina/canonical/shares/ubuntuone/controlpanel/gui/qt/share_links_search.py", line 296, in run
    folders_data += self.get_folder_info(folder)
  File "/home/ralsina/canonical/shares/ubuntuone/controlpanel/gui/qt/share_links_search.py", line 316, in get_folder_info
    for root, _, files in os.walk(folder):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 284, in walk
    if isdir(join(top, name)):
  File "/usr/lib/python2.7/posixpath.py", line 71, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 17: ordinal not in range(128)

Related branches

Roberto Alsina (ralsina)
Changed in ubuntuone-control-panel:
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Diego Sarmentero (diegosarmentero)
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

Fixed with the new implementation.

Changed in ubuntuone-control-panel:
status: Triaged → Fix Committed
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.