Computer to cloud wizard page: if os.walk fails, 'Calculating' header never goes away
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu One Control Panel | Status tracked in Trunk | |||||
Stable-3-0 |
Fix Released
|
Undecided
|
Roberto Alsina | |||
Trunk |
Fix Released
|
High
|
Roberto Alsina | |||
ubuntuone-control-panel (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | |||
Precise |
Fix Released
|
Undecided
|
Unassigned | |||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In my computer, my Music folder has some invalid pathnames, so when trying to calculate the size of it, the CalculateSize thread fails with:
2012-03-19 13:06:33,861 - ubuntuone.
Traceback (most recent call last):
File "/home/
for dirpath, _, filenames in os.walk(
File "/usr/lib/
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/
if isdir(join(top, name)):
File "/usr/lib/
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 12: ordinal not in range(128)
And then, the method LocalFoldersPan
We need to define a constant to flag the calculation error, and show in the listing something like 'size unknown' for the failing item.
[Test Case]
0. Place files with utf8-invalid file names inside the ~/Documents, ~/Music, or ~/Pictures folders for example, which is not synchronized to Ubuntu One.
1. Ensure the local user account is not connected to an Ubuntu One account yet.
2. Run ubuntuone-
3. When stepping through the resulting wizard, and arriving on the "Computer to Cloud" page, the above UnicodeDecodeError should occur, without this fix. With
the fix, size calculation of the local special folders should succeed without problem.
[Regression Potential]
Minimal. Fix includes unit tests.
Related branches
- Brian Curtin (community): Approve
- Diego Sarmentero (community): Approve
-
Diff: 92 lines (+39/-3)2 files modifiedubuntuone/controlpanel/gui/qt/folders.py (+10/-1)
ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+29/-2)
- Roberto Alsina (community): Approve
-
Diff: 322 lines (+122/-12)13 files modifieddata/qt/images.qrc (+4/-0)
data/qt/ubuntuone-rtl.qss (+27/-0)
data/qt/ubuntuone.qss (+0/-7)
ubuntuone/controlpanel/backend.py (+6/-1)
ubuntuone/controlpanel/gui/qt/filesyncstatus.py (+2/-0)
ubuntuone/controlpanel/gui/qt/folders.py (+10/-1)
ubuntuone/controlpanel/gui/qt/main/__init__.py (+4/-1)
ubuntuone/controlpanel/gui/qt/main/tests/test_main.py (+4/-0)
ubuntuone/controlpanel/gui/qt/systray.py (+1/-0)
ubuntuone/controlpanel/gui/qt/tests/test_filesyncstatus.py (+15/-0)
ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+29/-2)
ubuntuone/controlpanel/gui/qt/tests/test_systray.py (+12/-0)
ubuntuone/controlpanel/tests/test_backend.py (+8/-0)
Changed in ubuntuone-control-panel: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Natalia Bidart (nataliabidart) |
Changed in ubuntuone-control-panel: | |
assignee: | Natalia Bidart (nataliabidart) → Roberto Alsina (ralsina) |
Changed in ubuntuone-control-panel: | |
status: | Triaged → Fix Committed |
Changed in ubuntuone-control-panel (Ubuntu Precise): | |
milestone: | none → precise-updates |
tags: | added: desktop+ wizard |
description: | updated |
tags: |
added: verification-done removed: verification-complete |
Thanks for uploading the fix for this bug report to -proposed. However, when reviewing the package in -proposed and the details of this bug report I noticed that this bug is not fixed in the development release of Ubuntu. What are the plans for getting this fixed in Quantal? Additionallly, the bug description is missing required SRU information as described at https:/ /wiki.ubuntu. com/StableRelea seUpdates/ #Procedure.