Merge lp:~ralsina/ubuntuone-control-panel/check_subscribe_errors into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Alejandro J. Cura on 2012-08-07 |
| Approved revision: | 343 |
| Merged at revision: | 339 |
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/check_subscribe_errors |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
124 lines (+61/-4) 3 files modified
ubuntuone/controlpanel/gui/__init__.py (+3/-0) ubuntuone/controlpanel/gui/qt/folders.py (+14/-4) ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+44/-0) |
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/check_subscribe_errors |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alejandro J. Cura (community) | Approve on 2012-08-07 | ||
| Brian Curtin (community) | Approve on 2012-08-06 | ||
| Eric Casteleijn (community) | 2012-08-06 | Approve on 2012-08-06 | |
|
Review via email:
|
|||
Commit Message
- Give an error if the user subscribes a UDF and the local path is not a folder (Fixes LP:1033488)
Description of the Change
Text approved by Robert Grant.
To test IRL, create a UDF, then unsubscribe from it, remove it from disk, and create a file in its place.
When you try to subscribe to it again, it will give an error.
For another test: create a UDF, unsubscribe it, remove it from disk, and create a valid symlink pointing to a folder. When you try to subscribe to it again, it will give an error.
- 341. By Roberto Alsina on 2012-08-06
-
untypo
| Alejandro J. Cura (alecu) wrote : | # |
When the symlink points to a folder, it gets wrongly detected as a folder, and then an IPCError occurs.
| Alejandro J. Cura (alecu) wrote : | # |
Just to be clear, a symlink pointing to a folder is not possible right now within syncdaemon, because that folder could be in a different filesystem, or on a removable drive, etc, etc.
- 342. By Roberto Alsina on 2012-08-07
-
add test for when you are subscribing to a folder that exists as a valid symlink pointing to a folder
- 343. By Roberto Alsina on 2012-08-07
-
handle case when you are subscribing to a folder that exists as a valid symlink pointing to a folder
| Roberto Alsina (ralsina) wrote : | # |
Added test and handler for the case where the folder the user tries to subscribe is a symlink that points to a real folder.
I think this covers all possible combinations ;-)


+1 with s/already exists in your device/already exists on your device/