Bug 81862 - [org.freedesktop.Accounts.Error.PermissionDenied: Not authorized] While trying to change a ringtone
Summary: [org.freedesktop.Accounts.Error.PermissionDenied: Not authorized] While tryin...
Status: RESOLVED NOTOURBUG
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 06:03 UTC by Omer Akram
Modified: 2014-07-30 11:45 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
test_case (1.29 KB, text/plain)
2014-07-29 06:03 UTC, Omer Akram
Details

Description Omer Akram 2014-07-29 06:03:27 UTC
Created attachment 103623 [details]
test_case

On my Ubuntu phone, I am trying to write an integration test which involves backing up the old ringtone value and then restoring it. The backup works fine but when I try to write the value it gives:

phablet@ubuntu-phablet:~$ ./accounts_service_issue.py 
Current ringtone: Ubuntu.ogg 
Trying to set to: Supreme.ogg
Traceback (most recent call last):
  File "./accounts_service_issue.py", line 47, in <module>
    set_ringtone()
  File "./accounts_service_issue.py", line 23, in set_ringtone
    new_ringtone)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Accounts.Error.PermissionDenied: Not authorized

Not really sure whats happening there, any help is appreciated.
Comment 1 Stef Walter 2014-07-29 08:49:21 UTC
I'd suggest filing a bug in Ubuntu's Launchpad and ask for help there. The com.ubuntu.touch.AccountsService.Sound interface (as seen in your test case) is an extended interface that Ubuntu has added to AccountsService.
Comment 2 Omer Akram 2014-07-29 14:46:29 UTC
Hi!

I investigated a bit more and talked to the developers, the reason this problem is happening because:
"we are somehow trying to run this as "passive" user and not the active."

The scenario is that I am running this script over ssh which probably makes me "passive" user ?

Is there any workaround/hack around that ?
Comment 3 Stef Walter 2014-07-30 11:45:03 UTC
(In reply to comment #2)
> Hi!
> 
> I investigated a bit more and talked to the developers, the reason this
> problem is happening because:
> "we are somehow trying to run this as "passive" user and not the active."
> 
> The scenario is that I am running this script over ssh which probably makes
> me "passive" user ?
> 
> Is there any workaround/hack around that ?

I'm not sure I completely understand, but this may be related to bug #78279


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.