syncdaemon creates "view, copy" shares only
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Fix Released
|
High
|
Guillermo Gonzalez | ||
ubuntuone-client (Ubuntu) |
Fix Released
|
High
|
dobey |
Bug Description
STR:
1. Share something via Nautilus extension checking Allow Modification.
2. Check the created share:
id=a1f3ad6c-
Result:
Share is in View-only mode (view and copy, in terms of Web UI if it had that displayed)
Expected result:
Share is in Read/Write mode (change, view and copy in terms of Web UI)
Caused by:
ubuntuone-
ubuntuone_
allow_mods = gtk_toggle_
modify = g_strdup_printf ("%d", allow_mods);
dbus_
...
syncdaemon/
@dbus.service.
def create_share(self, path, username, name, access_level):
""" Share a subtree to the user identified by username.
...
@param access_level: 'View' or 'Modify'
"""
...
self.vm.
syncdaemon/
def create_share(self, path, username, name, access_level):
""" create a share for the specified path, username, name """
self.m.
syncdaemon/
def create_share(self, node_id, share_to, name, access_level, marker):
...
return CreateShare(
[sorry, skipped]
def _create_
"""Create a share using the HTTP Web API method."""
data = dict(offer_to_email = user,
Summmary:
modify = "0" or "1" (strings) and they both != True.
Related branches
- Tim Cole (community): Approve
- Martin Albisetti (community): Approve
-
Diff: 109 lines (+63/-4)2 files modifiedtests/syncdaemon/test_action_queue.py (+60/-1)
ubuntuone/syncdaemon/action_queue.py (+3/-3)
description: | updated |
summary: |
- Nautilus extension creates View-only share when Allow Modification is - checked + syncdaemon creates "view, copy" shares only |
tags: | added: desktop+ |
tags: | added: chicharra u1-lucid |
Changed in ubuntuone-client: | |
assignee: | Lucio Torre (lucio.torre) → Ubuntu One Foundations+ team (ubuntuone-foundations+) |
tags: | added: chicharra-lucid-problems |
Changed in ubuntuone-client: | |
assignee: | Ubuntu One Foundations+ team (ubuntuone-foundations+) → Guillermo Gonzalez (verterok) |
status: | Confirmed → In Progress |
tags: | added: package |
Changed in ubuntuone-client: | |
milestone: | none → lucid-beta-2 |
Changed in ubuntuone-client (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Guillermo Gonzalez (verterok) |
milestone: | none → ubuntu-10.04-beta-2 |
Changed in ubuntuone-client: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-client (Ubuntu): | |
assignee: | Guillermo Gonzalez (verterok) → Rodney Dawes (dobey) |
importance: | Medium → High |
Changed in ubuntuone-client (Ubuntu): | |
status: | In Progress → Fix Released |
tags: | removed: package |
Changed in ubuntuone-client: | |
status: | Fix Committed → Fix Released |
First of all, the problem is in syncdaemon.
Simple read_only = modify != "1" fixes the problem but it does not fix the real reason.
access_level=True or access_level=False do not make much sense to me. Yes, later on this is transformed to "modify" and then "read_only" True/False but how about the command line routine u1sdtool which says:
--offer- share=PATH USER SHARE_NAME ACCESS_LEVEL
share PATH to USER.
In this case I do the following, rtg/Ubuntu One/Documents/Scans
$ u1sdtool --list-shared
Shared list:
id=deadbeef name=Scans accepted=True access_level=View to=openiduser19154 path=/home/
Hm, probably, access_level needs to be set to "View".
However it does not matter what I put there. "View" != True, so the share is read-only, as intended. But it will be set to read-only for any value of access_level.
So please:
1. Make access_level understandable.
2. Fix the access_level check or people will start complaining once the second party tries to put a file into the share created with "Allow Modification".
P.S. openiduser19154 is not nice as well, but I suspect that has something to do with bug #402775