Can not export import

Bug #1584327 reported by Maxim Gnidak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
content-hub (Ubuntu)
New
Undecided
Unassigned

Bug Description

Developing application, and have AppArmor denial. Import and Export is not working.

Manifest:

{
    "name": "vuk.maxvanceffer",
    "title": "vuk",
    "hooks": {
        "vuk.maxvanceffer": {
            "apparmor": "vuk.apparmor",
            "desktop": "vuk.desktop",
            "content-hub": "hub.json"
        }
    },
    "version": "0.6.2",
    "framework": "ubuntu-sdk-15.04.4"
}

Hub.json:

{
    "destination": ["pictures"],
    "share": ["pictures","links"],
    "source": ["pictures"]
}

Code which try to open:

import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Content 1.3

Page {
    id: root

    property var transfer

    ContentTransferHint {
        anchors.fill: parent
        activeTransfer: transfer
    }

    ContentPeerPicker {
        id: picker
        handler: ContentHandler.Source
        contentType: ContentType.Pictures
        showTitle: false

        onPeerSelected: {
            transfer = peer.request();
        }
    }

    Connections {
        target: transfer

        onStateChaged: {
            if(transfer.state === ContentTransfer.Charged) {
                console.log('Image recived ', transfer.items[0].url);
            }
        }
    }
}

Error:

:-1: error: There has been a AppArmor denial for the application. It usually means it is missing a policy in the AppArmor file:
 May 21 15:39:28 ubuntu-phablet dbus[1845]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/transfers/vuk_2emaxvanceffer/import/116" interface="com.ubuntu.content.dbus.Transfer" member="SelectionType" mask="send" name="com.ubuntu.content.dbus.Service" pid=27181 label="vuk.maxvanceffer_vuk.maxvanceffer_0.6.2" peer_pid=3708 peer_label="unconfined"

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.