[precise] PublicAccessChanged is not sent on unpublishing - TypeError: Expected a string or unicode object

Bug #975989 reported by Roman Yepishev
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Triaged
Undecided
Ubuntu One Client Engineering team
ubuntuone-client (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

STR:

1. Publish a file.
2. Unpublish a file.

u1sdtool hangs since the PublicAccessChanged is not sent:

2012-04-07 17:39:13,042 - ubuntuone.SyncDaemon.EQ - ERROR - Error encountered while handling: AQ_CHANGE_PUBLIC_ACCESS_OK in <ubuntuone.syncdaem
on.interaction_interfaces.SyncdaemonEventListener object at 0x7a59490>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/event_queue.py", line 303, in _dispatch
    method(**kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/logger.py", line 269, in inner
    res = f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/interaction_interfaces.py", line 1064, in handle_AQ_CHANGE_PUBLI
C_ACCESS_OK
    self.interface.public_files.PublicAccessChanged(info)
  File "/usr/lib/python2.7/dist-packages/dbus/decorators.py", line 314, in emit_signal
    message.append(signature=signature, *args)
TypeError: Expected a string or unicode object

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntuone-client 2.99.92-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Uname: Linux 3.2.0-22-generic x86_64
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Sat Apr 7 17:41:59 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120225)
PackageArchitecture: all
SourcePackage: ubuntuone-client
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Roman Yepishev (rye) wrote :
summary: - PublicAccessChanged is not sent on unpublishing - TypeError: Expected a
- string or unicode object
+ [precise] PublicAccessChanged is not sent on unpublishing - TypeError:
+ Expected a string or unicode object
Changed in ubuntuone-client:
assignee: nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+)
Roman Yepishev (rye)
Changed in ubuntuone-client:
assignee: Ubuntu One Foundations+ team (ubuntuone-foundations+) → Ubuntu One Desktop+ team (ubuntuone-desktop+)
Leo Arias (elopio)
tags: added: desktop+
Leo Arias (elopio)
Changed in ubuntuone-client:
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntuone-client (Ubuntu):
status: New → Confirmed
Revision history for this message
Leo Arias (elopio) wrote :

Can this be the cause of bug #980782 ?
After unpublishing a file, the Ubuntu One menu on Nautilus doesn't show the publish option again.

Revision history for this message
Roman Yepishev (rye) wrote :

@Leo, yes, nautilus does not receive a notification that the file is unpublished so it does not re-enable the "publish" menu item.

Revision history for this message
Roman Yepishev (rye) wrote :

I have attached the branch which fixes the issue but all public file interaction is missing the tests that make sure the related signals are sent.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.