Files still get downloaded from "unsubscribed" folder

Bug #682878 reported by Roman Yepishev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Trunk
Fix Released
High
Natalia Bidart
ubuntuone-client (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Lucid by Roman Yepishev
Nominated for Maverick by Roman Yepishev
Natty
Fix Released
Undecided
Unassigned

Bug Description

Even if a folder is unsubscribed the files uploaded to that folder via web ui or different client get downloaded locally thus defeating the purpose of unsubscribing from a folder.

STR:

1. Create a new udf, say, ~/zomg
2. Verify that it was created - u1sdtoll --list-folders
3. Unsubscribe that UDF - u1sdtool --unsubscribe=$folder_id_of_zomg
4. Verify that ~/zomg is unsubscribed - subscribed=False
5. Go to https://one.ubuntu.com/files/ , zomg UDF and upload a file
6. Wait for the file to be uploaded, observe the file to be created locally

Even if you physically move the folder to another name, syncdaemon will want to download the file and fail with:

2010-11-29 23:43:00,873 - ubuntuone.SyncDaemon.sync - ERROR - T:SERVER:F 9b67c3bb-ef11-4342-96be-b195af83cfde ['7c9ec5a8-79fa-4935-ad3f-417840ca7d2c'::'ed9abf6b-2da5-4c86-8c1a-e6aa0ef642c4'] ''zomg/dress.jpg'' | Executing ACTION_FUNC 'commit_file' gave an exception: IOError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/fsm/fsm.py", line 137, in on_event
    af(event_name, parameters, *args)
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/sync.py", line 517, in commit_file
    self.m.fs.commit_partial(key['node_id'], key['share_id'], hash)
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/filesystem_manager.py", line 952, in commit_partial
    shutil.move(partial_path, path)
  File "/usr/lib/python2.6/shutil.py", line 260, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.6/shutil.py", line 95, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.6/shutil.py", line 51, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/home/rtg/zomg/dress.jpg'

Related branches

tags: added: chicharra-natty u1-natty
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Attaching log of how syncdaemon downloaded a file to a non subscribed UDF. Instructions above worked perfectly to reproducing.

Changed in ubuntuone-client:
status: Confirmed → Triaged
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

nessita@dali:~$ u1sdtool --list-folders
Folder list:
  id=f5cc6b0d-85a0-4046-a72f-bd42c41538cb subscribed=False path=/home/nessita/udf0

Changed in ubuntuone-client:
assignee: Ubuntu One Foundations+ team (ubuntuone-foundations+) → Guillermo Gonzalez (verterok)
Changed in ubuntuone-client:
status: Triaged → In Progress
assignee: Guillermo Gonzalez (verterok) → Naty Bidart (nataliabidart)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-client - 1.5.4-0ubuntu1

---------------
ubuntuone-client (1.5.4-0ubuntu1) natty; urgency=low

  * New upstream release.
    - Files still get downloaded from unsubscribed folder (LP: #682878)
    - Add subscription capabilities to shares (LP: #708335)
    - Nautilus offers Publish option within other's shares (LP: #712674)
    - Shares dir name may not be unique (LP: #715776)
    - Send a notification when new Volume is available (LP: #702055)
    - Add messaging menu entry for new Volumes (LP: #702075)
    - Aggregate notifications for completed operations (LP: #702128)
    - Send a notification for new Share offers (LP: #702138)
    - Add messaging menu entry for new Share offers (LP: #702144)
  * Remove ubuntuone-client-tools as u1sync has been moved out.
  * Simplify python package as we don't have multiple python packages now.
 -- Rodney Dawes <email address hidden> Fri, 11 Feb 2011 16:18:11 -0500

Changed in ubuntuone-client (Ubuntu Natty):
status: New → 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.