Public bug reported:

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"

** Affects: content-hub (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to content-hub in Ubuntu.
https://bugs.launchpad.net/bugs/1584327

Title:
  Can not export import

Status in content-hub package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/content-hub/+bug/1584327/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to