I solved this by using:"if (xhr.readyState == 4) { if (xhr.status ==
200) {"instead of XMLHttpRequest.DONE. Hope this helps someone :)
Date: Thu, 23 Jul 2015 15:49:27 +0200
From: [email protected]
To: [email protected]
Subject: Re: [Ubuntu-phone] XHR doesn't work because of apparmor
Probably related to this bug:
https://bugs.launchpad.net/apparmor-easyprof-ubuntu/+bug/1404188
It prints the same apparmor denial.
Br,
Michael
On 23.07.2015 15:06, Bogdan Cuza wrote:
> Hello!
>
> I am having some issues with a XmlHttpRequest. The response is null,
> even though it passes req.readyState == XMLHttpRequest.DONE. The log
> reports this:
>
> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply
> "An AppArmor policy prevents this sender from sending this message to
> this recipient; type="method_call", sender=":1.465" (uid=32011 pid=22453
> comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ q")
> interface="org.freedesktop.DBus.Properties" member="GetAll" error
> name="(unset)" requested_reply="0"
> destination="org.freedesktop.NetworkManager" (uid=0 pid=1245
> comm="NetworkManager ")"
>
> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An
> AppArmor policy prevents this sender from sending this message to this
> recipient; type="method_call", sender=":1.465" (uid=32011 pid=22453
> comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ q")
> interface="org.freedesktop.NetworkManager" member="GetDevices" error
> name="(unset)" requested_reply="0"
> destination="org.freedesktop.NetworkManager" (uid=0 pid=1245
> comm="NetworkManager ")"
> "Object path cannot be empty"
> "Object path cannot be empty"
>
> My apparmor has "networking" in policy_groups. Could anyone help me with this?
>
> Thanks,
>
> Bogdan
>
>
>
--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help : https://help.launchpad.net/ListHelp
--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help : https://help.launchpad.net/ListHelp