Scope ini file is expected in the wrong location

Bug #1350427 reported by Pete Woods
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Click Reviewers tools (obsolete)
Fix Released
Undecided
Pete Woods

Bug Description

Following the apparmor policy updates a little while ago, scopes are now named after the hook short ID.

For a scope package "package-name" with a hook "hook-name" to the directory "dir-name".

manifest.json:
{
    ...
    "hooks": {
        "HOOKNAME": {
            "scope": "DIRNAME",
            "apparmor": "apparmor.json"
        }
    },
   "name": "PACKAGENAME"
    ...
}

The tool should look in
    DIRNAME/PACKAGENAME_HOOKNAME.ini
for the the ini file.

It is currently looking in
    DIRNAME/PACKAGENAME.ini
which is incorrect.

Additionally, the validation rules for the ini file itself are incomplete and incorrect. Please see the documentation at http://bazaar.launchpad.net/~unity-team/unity-scopes-api/trunk/view/head:/CONFIGFILES

Tags: scope-dev

Related branches

Pete Woods (pete-woods)
description: updated
description: updated
Pete Woods (pete-woods)
description: updated
Changed in click-reviewers-tools:
assignee: nobody → Pete Woods (pete-woods)
status: New → Fix Committed
tags: added: scope-dev
Changed in click-reviewers-tools:
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.