Not enough debug information in the application output window when "AccessDenied" happens

Bug #1338886 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator (Ubuntu)
New
Undecided
Unassigned

Bug Description

Not enough debug information in the application output window when "AccessDenied" error happens. It would be good to indicate which line of source code causes the errors since multiple similar error can happen at the same time. Furthermore, it would be good to make suggestions to the developers which policies are missing in the apparmor setting file so that developers can add them to make the code working properly. If the API belongs to "Unconfined" template, it is also good to indicate to developers to stop trying and speculating.

I would suggest all of the error messages are shown in RED color to make them more outstanding!

Attached please find the picture I have for the bug report!

Thanks & best regards,
XiaoGuo

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

In another case, when I am trying to get the IMEI number of the phone:

import QtQuick 2.0
import Ubuntu.Components 0.1
import QtSystemInfo 5.0
import Ubuntu.Components.ListItems 0.1 as ListItem
import "components"

        DeviceInfo {
            id: deviceInfos
        }

              ListItem.SingleValue {
                    objectName: "imeiItem"
                    property string imeiNumber
                    imeiNumber: deviceInfos.imei(0)
                    text: "IMEI"
                    value: imeiNumber
                    visible: true
                }

The syslog shows:

root@ubuntu-phablet:~# grep DEN /var/log/syslog | grep "deviceinfo"
Jul 8 13:38:40 ubuntu-phablet dbus[718]: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.ofono.Manager" member="GetModems" mask="send" name="org.ofono" pid=7659 profile="com.ubuntu.developer.liu-xiao-guo.deviceinfo_DeviceInfo_0.1" peer_pid=1232 peer_profile="unconfined"
Jul 8 13:41:31 ubuntu-phablet dbus[718]: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.ofono.Manager" member="GetModems" mask="send" name="org.ofono" pid=7919 profile="com.ubuntu.developer.liu-xiao-guo.deviceinfo_DeviceInfo_0.1" peer_pid=1232 peer_profile="unconfined"

However, there is no indication in the application output window at all. Attached please find the captured pic.

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.