apparmor denials with using XMLHttpRequest

Bug #1541686 reported by Lorn Potter
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

I just tried an example app with code from:
http://doc.qt.io/qt-5/qtqml-xmlhttprequest-get-qml.html

QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.107" (uid=32011 pid=7239 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ M") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1309 comm="NetworkManager ")"
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.107" (uid=32011 pid=7239 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ M") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1309 comm="NetworkManager ")"
"Object path cannot be empty"
file:///opt/click.ubuntu.com/get.lorn-potter/0.1/Main.qml:61: TypeError: Cannot read property 'documentElement' of null

The calls GetAll and GetDevices are used in the QtBearer network manager backend.

Revision history for this message
Lorn Potter (lorn-potter) wrote :

This could be fixed by moving to using a QtBearer backend based on connectivity-api.

But I think that API is too sparse at the moment for a completely working QtBearer.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Confirmed
Changed in qtbase-opensource-src (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
James Tigert (jimmy-tigert) wrote :

Still an issue with Qt Creator 3.5.1 running on 16.04. Can provide logs if needed (away from development laptop at present).

Revision history for this message
Keefer (krourke) wrote :

I'm also getting app armor denials with XmlHttpRequests. I'm trying to fetch a series of files from a remote server to set some variables. I'm using a Nexus 4 on ubuntu-touch/rc/ubuntu-developer and an Ubuntu 16.10 laptop with the latest SDK.

Revision history for this message
Johannah Sprinz (neothethird) wrote :

I have the same issue. Latest Ubuntu SDK, 16.04, Nexus 4 stable.
Tried to run the QML WebView example with networking and webview permissions, no success: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.4/Ubuntu.Web.WebView/

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.