Metadata info may be corrupt on UI when accessing Shared With Me files

Bug #612191 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
magicicada gui
Fix Released
High
Natalia Bidart

Bug Description

It seems to be displaying metadata for formerly opened files. Maybe something is wrong with symlinks?

Related branches

Changed in magicicada:
assignee: nobody → Naty Bidart (nataliabidart)
importance: Undecided → High
status: New → Confirmed
Changed in magicicada:
milestone: none → alpha2
milestone: alpha2 → alpha1
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

This is caused by the fact that Shared With Me is a symlink. One solution is to pass the os.path.realpath of the path. This can be done in the magicicada level, or in SyncDaemon. I think we have to do it in the lower layer.

Anyways, I've tried this and the syncdaemon service doesn't answer the request. As per logs:

2010-08-21 13:21:27,323 - ubuntuone.SyncDaemon.DBus - DEBUG - get_metadata by path: dbus.String(u'/home/nessita/.local/share/ubuntuone/shares/Canonical from System User/u1prefs.png')
2010-08-21 13:22:58,213 - ubuntuone.SyncDaemon.Main - NOTE - ---- MARK (state: <State: 'READY' (queues IDLE connection 'Not User With Network')>; queues: metadata: 0; content: 0; hash: 0, fsm-cache: hit=3862 miss=1303) ----

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Magicicada code is fixed and a branch is proposed.

Anyways, querying underlying syncdaemon for this info fails, no matter if the path is realpath or not:

> /home/nessita/canonical/ubuntuone-client/trunk/ubuntuone/syncdaemon/dbus_interface.py(969)get_metadata()
-> mdobj = self.fs_manager.get_by_path(path.encode('utf-8'))
(Pdb) n
KeyError: ('/home/nessita/Ubuntu One/Shared With Me/nessita from Matt Griffin/storage_usage.ods',)

> /home/nessita/canonical/ubuntuone-client/trunk/ubuntuone/syncdaemon/dbus_interface.py(969)get_metadata()
-> mdobj = self.fs_manager.get_by_path(path.encode('utf-8'))
(Pdb) n
KeyError: ('/home/nessita/.local/share/ubuntuone/shares/nessita from Matt Griffin/storage_usage.ods',)

Changed in magicicada:
status: Confirmed → In Progress
Revision history for this message
Facundo Batista (facundo) wrote :

This is the bug in Ubuntu One client: #621924

Changed in magicicada:
status: In Progress → Fix Committed
Changed in magicicada:
status: Fix Committed → 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.