Download fails if Downloads folder doesn’t exist

Bug #1599436 reported by Olivier Tilloy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Bill Filler
webbrowser-app (Ubuntu)
Fix Released
Medium
Olivier Tilloy

Bug Description

I’m packaging webbrowser-app as a snap, and when testing the app installed as such, downloading files fails with the following error:

Failed moving file from "/home/osomon/.local/share/ubuntu-download-manager/snap.webbrowser-app.webbrowser-app/Downloads/example.pdf" to "/home/osomon/snap/webbrowser-app/x2/Downloads/example.pdf"

This is because the 'Downloads' folder doesn’t initially exist under $HOME/snap/webbrowser-app/x2/.
Creating the folder manually solves the issue.

The DownloadsModel should check for the existence of the destination folder, and create it if it doesn’t exist.

Related branches

Changed in canonical-devices-system-image:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 13
assignee: nobody → Bill Filler (bfiller)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+16.10.20160711-0ubuntu1

---------------
webbrowser-app (0.23+16.10.20160711-0ubuntu1) yakkety; urgency=medium

  [ Florian Boucault ]
  * Debian packaging crossbuild fixes:

  [ Olivier Tilloy ]
  * Create Downloads folder if it doesn’t exist. (LP: #1599436)
  * Increase timeout a lot to cope with flaky tests in CI. (LP:
    #1599630)

 -- Olivier Tilloy <email address hidden> Mon, 11 Jul 2016 15:20:04 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
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.