Not enough debug information in the application output window when "AccessDenied" happens
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
In another case, when I am trying to get the IMEI number of the phone:
import QtQuick 2.0 Components. ListItems 0.1 as ListItem
import Ubuntu.Components 0.1
import QtSystemInfo 5.0
import Ubuntu.
import "components"
DeviceInfo {
id: deviceInfos
}
}
The syslog shows:
root@ubuntu- phablet: ~# grep DEN /var/log/syslog | grep "deviceinfo" "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" "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"
Jul 8 13:38:40 ubuntu-phablet dbus[718]: apparmor="DENIED" operation=
Jul 8 13:41:31 ubuntu-phablet dbus[718]: apparmor="DENIED" operation=
However, there is no indication in the application output window at all. Attached please find the captured pic.