Bug 91942 - simple typo in a different rule causes everything else to fail
Summary: simple typo in a different rule causes everything else to fail
Status: RESOLVED MOVED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 17:48 UTC by muesli4
Modified: 2018-08-20 21:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description muesli4 2015-09-09 17:48:49 UTC
I just created 2 rules for udisks and NetworkManager (with priority 10 and 11), in both I had the same typo with "Action":

    polkit.addRule(function(Action, subject) {
        if (action.id == ...) {
            return polkit.Result.YES;
        }
    });

Result: For some reason I can't shutdown/suspend/hibernate but only logout. I have no other rules but '50-default.rules':
    polkit.addAdminRule(function(action, subject) {
        return ["unix-group:wheel"];
    });

Things I find problematic:
    1. I can't find the error source anywhere. (Are there logs or error messages?)
    2. Why does a single wrong rule affect all others? (did the JavaScript interpreter crash?)
Comment 1 GitLab Migration User 2018-08-20 21:35:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/polkit/polkit/issues/22.


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.