Crash when accepting empty file string for upload
Bug #1352952 reported by
Michael Sheldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Fix Released
|
Undecided
|
Olivier Tilloy |
Bug Description
If oxide's FilePicker is passed an empty string to upload (e.g. by an app not providing the file URL correctly to content-hub) it crashes.
This can be reproduced by simply adding 'model.
Related branches
lp:~osomon/oxide/ensure-files-exist
- Chris Coulson: Approve
-
Diff: 56 lines (+47/-0)2 files modifiedqt/tests/qmltests/crash/tst_bug1352952.html (+5/-0)
qt/tests/qmltests/crash/tst_bug1352952.qml (+42/-0)
Changed in oxide: | |
assignee: | nobody → Olivier Tilloy (osomon) |
status: | Confirmed → In Progress |
Changed in oxide: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
I can reliably reproduce the issue with the following simple QML scene:
import QtQuick 2.0
import com.canonical.Oxide 1.0
WebView {
width: 800
height: 600
url: "http:// www.wufoo. com/html5/ attributes/ 07-accept. html"
filePicker: Item {
Component. onCompleted: model.accept([""])
}
}