When using Qt.resolvedUrl to generate path in U1db.Database, the document contents are invalid
Bug #1426178 reported by
Marco Trevisan (Treviño)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
Fix Committed
|
Medium
|
Marco Trevisan (Treviño) |
Bug Description
See the attached example, I'm trying to set the fullpath of the dabase using Qt.resolvedUrl(
Settings saved in /tmp/settings.db; settings contents is undefined
For some reason the document contents is undefined.
The example, correctly generates the "settings.db", but it has no default data in it.
If I replace, the the generated path with the full path of the file (so in my case 'path: "/tmp/settings.
This seems pretty weird.
Once generated, I can go back to the version with Qt.resolvedUrl and it seems to work again.
Related branches
lp:~3v1n0/u1db-qt/doc-path-change-fixes
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 155 lines (+26/-13)9 files modifiedexamples/u1db-qt-example-1/u1db-qt-example-1.qml (+1/-1)
examples/u1db-qt-example-2/u1db-qt-example-2.qml (+1/-1)
examples/u1db-qt-example-2b/u1db-qt-example-2b.qml (+1/-1)
examples/u1db-qt-example-3/u1db-qt-example-3.qml (+1/-1)
examples/u1db-qt-example-5/u1db-qt-example-5.qml (+1/-1)
examples/u1db-qt-example-6/u1db-qt-example-6.qml (+2/-5)
src/document.cpp (+16/-0)
src/index.cpp (+1/-0)
tests/tst_database.qml (+2/-3)
description: | updated |
Changed in u1db-qt: | |
status: | New → In Progress |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
Changed in u1db-qt: | |
importance: | Undecided → Medium |
Changed in u1db-qt: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.