Can't upload files using webapp-container

Bug #1626667 reported by Alessandro Viprati
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm not able to upload files using webapp-container.

I've tried this:

 1. $ webapp-container wiki.ubuntu-it.org
 2. login to the italian wiki
 3. click on the "attachment" link
 4. click on the icon to upload files

Expected: a window for upload files should open
Swat happens: error in the terminal:
"FilePicker::Show: Content requested a file picker, but the application hasn't provided one"

This is the complete output from the terminal:

$ webapp-container wiki.ubuntu-it.org
Invalid webapp webapp definition: homepage not found or fails predicate isString
Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json"
qml: Loading webview on /home/alessandro/.local/share/webbrowser-app
Invalid webapp webapp definition: homepage not found or fails predicate isString
Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json"
QQmlExpression: Expression file:///usr/share/webbrowser-app/webcontainer/WebApp.qml:272:25 depends on non-NOTIFYable properties:
    unity::action::qml::ActionManager::globalContext
qml: Loaded 5 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/ua-overrides-mobile.js
qml: Start browsing
file:///usr/share/webbrowser-app/webcontainer/ContentPickerDialog.qml:22:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/webcontainer/ContentDownloadDialog.qml:22:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/ContentHandler.qml:20:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/Downloader.qml:22:1: module "Ubuntu.DownloadManager" is not installed
file:///usr/share/webbrowser-app/Downloader.qml:23:1: module "Ubuntu.Content" is not installed
file:///usr/share/webbrowser-app/Downloader.qml:22:1: module "Ubuntu.DownloadManager" is not installed
file:///usr/share/webbrowser-app/Downloader.qml:23:1: module "Ubuntu.Content" is not installed
qml: Loaded 5 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/ua-overrides-desktop.js
[0922/191134:ERROR:layer_tree_host_impl.cc(2250)] Forcing zero-copy tile initialization as worker context is missing
TouchSelectionController::active is deprecated, use TouchSelectionController::status instead
FilePicker::Show: Content requested a file picker, but the application hasn't provided one
FilePicker::Show: Content requested a file picker, but the application hasn't provided one
FilePicker::Show: Content requested a file picker, but the application hasn't provided one
FilePicker::Show: Content requested a file picker, but the application hasn't provided one
FilePicker::Show: Content requested a file picker, but the application hasn't provided one

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: webapp-container 0.23+16.04.20160413-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Sep 22 19:14:06 2016
InstallationDate: Installed on 2016-08-30 (22 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: webbrowser-app
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alessandro Viprati (vipri-alessandro) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Try installing qtdeclarative5-ubuntu-content1, that should solve the issue:

  sudo apt install qtdeclarative5-ubuntu-content1

Changed in webbrowser-app (Ubuntu):
status: New → Invalid
Revision history for this message
Alessandro Viprati (vipri-alessandro) wrote :

Installed the package 'qtdeclarative5-ubuntu-content1' and its dependencies.

Now, when I try to upload files, webapps open the page:
"Choose from" (or something similar, I'm translating from italian) with the indication that "no apps are installed which can provide this kind of content".

Running webapp-contanier with terminal, I still get the output:
"file:///usr/share/webbrowser-app/Downloader.qml:22:1: module "Ubuntu.DownloadManager" is not installed"

I think I'm missing again some package, any idea?
Thanks

Revision history for this message
Alessandro Viprati (vipri-alessandro) wrote :

Installed the package 'qtdeclarative5-ubuntu-download-manager0.1'.
Now I don't get anymore outputs regarding missing modules, however I'm still not able to upload files.

I still get the previous message #3

webapp-container --name='Wiki di Ubuntu-it' --enable-back-forward --store-session-cookies --open-external-url-in-overlay --app-id=ubuntu-it-wiki --webappUrlPatterns=http://wiki.ubuntu-it.org/*,https://login.ubuntu.com/* http://wiki.ubuntu-it.org/Documentazione/Indice
Invalid webapp webapp definition: homepage not found or fails predicate isString
Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json"
Setting session cookie mode to "restored"
qml: Loading webview on /home/alessandro/.local/share/ubuntu-it-wiki
Invalid webapp webapp definition: homepage not found or fails predicate isString
Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json"
QQmlExpression: Expression file:///usr/share/webbrowser-app/webcontainer/WebApp.qml:272:25 depends on non-NOTIFYable properties:
    unity::action::qml::ActionManager::globalContext
qml: Loaded 5 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/ua-overrides-mobile.js
qml: Start browsing
qml: Loaded 5 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/ua-overrides-desktop.js
[0923/113740:ERROR:layer_tree_host_impl.cc(2250)] Forcing zero-copy tile initialization as worker context is missing
TouchSelectionController::active is deprecated, use TouchSelectionController::status instead

Revision history for this message
Olivier Tilloy (osomon) wrote :

You’re missing the following package: qtdeclarative5-ubuntu-download-manager0.1

But that’s not going to solve the lack of apps that provide this kind of content.
Because the webapp container is running confined, it cannot just offer a file picker that would allow browsing the file system. Instead, it relies on applications that act as content providers, to pick content from. For example the gallery-app package can provide images. For all types of file, you want the ubuntu-filemanager-app, but it doesn’t appear to exist as a debian package, only as click.

Revision history for this message
Alessandro Viprati (vipri-alessandro) wrote :

Thanks Olivier for your time and patience, I really appreciate.

Just installed the gallery-app package, but it isn't listed as content provider in the webapp-container nor in other webapps (g+, facebookmessenger...).
An image picker could be enought for a wiki webapp (essentially the majority of files uploaded in the italian wiki by users are images). If I need different types of files, I'll look to the ubuntu-filemanager-app, however first I need that webapp-container can see these apps.

Any idea on how to archieve this?
If ther's some kind of documentation I can read, please send me links.

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.