QStandardPaths::RuntimeLocation returns empty string under pbuilder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webapps-sprint |
Fix Released
|
High
|
Alberto Mardegan | ||
qtbase-opensource-src (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
ubuntu-system-settings-online-accounts (Ubuntu) |
Fix Released
|
Critical
|
Alberto Mardegan |
Bug Description
The unit tests for ubuntu-
==================
task-0: ********* Start testing of UiProxyTest *********
task-0: Config: Using QtTest library 5.5.1, Qt 5.5.1 (x86_64-
task-0: PASS : UiProxyTest:
task-0: PASS : UiProxyTest:
task-0: QWARN : UiProxyTest:
task-0: QWARN : UiProxyTest:
task-0: FAIL! : UiProxyTest:
task-0: Loc: [tst_ui_
==================
I've debugged the issue, and I've verified that QStandardPaths:
Related branches
- Online Accounts: Pending requested
-
Diff: 13 lines (+3/-0)1 file modifiedtests/online-accounts-service/tst_ui_proxy.cpp (+3/-0)
Changed in ubuntu-system-settings-online-accounts (Ubuntu): | |
assignee: | nobody → Alberto Mardegan (mardy) |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in webapps-sprint: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Alberto Mardegan (mardy) |
milestone: | none → sprint-26 |
Changed in webapps-sprint: | |
milestone: | sprint-26 → sprint-27 |
Changed in webapps-sprint: | |
status: | In Progress → Fix Released |
I investigated this bug, and it happens because QFileInfo: :ownerId( ) returns -2 while inspecting the runtime directory. The documentation says:
On Windows and on systems where files do not have owners this
function returns ((uint) -2).
It's not clear though, why would this be returning -2 under pbuilder, given that the filesystem seems to support ownership.