Click packages with spaces in file name fail to install

Bug #1294631 reported by Michal Hruby
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scope-click (Ubuntu)
Fix Released
High
Alejandro J. Cura

Bug Description

I had the udm download an app that was saved as "/home/phablet/.local/share/ubuntu-download-manager/Downloads/com (4).ubuntu.developer.mzanetti.xbmcremote_1.4.1.0_armhf.click" - note the space after "com".

From the udm log:

I0318 18:01:39.834267 5341 process.cpp:54] start /bin/sh-c pkcon -p install-local $0 && dbus-send /com/canonical/unity/scopes com.canonical.unity.scopes.InvalidateResults string:clickscope /home/phablet/.local/share/ubuntu-download-manager/Downloads/com (4).ubuntu.developer.mzanetti.xbmcremote_1.4.1.0_armhf.click3
I0318 18:01:40.051970 5341 process.cpp:85] Transaction: Installing files
I0318 18:01:40.052274 5341 process.cpp:85] Results:
Fatal error: could not resolve: /home/phablet/.local/share/ubuntu-download-manager/Downloads/com
I0318 18:01:40.056455 5341 filename_mutex.cpp:88] Released path ' /home/phablet/.local/share/ubuntu-download-manager/Downloads/com (4).ubuntu.developer.mzanetti.xbmcremote_1.4.1.0_armhf.click'

Looks like there's an escaping issue.

Related branches

Changed in unity-scope-click (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in unity-scope-click (Ubuntu):
assignee: nobody → Alejandro J. Cura (alecu)
Michał Sawicz (saviq)
Changed in unity-scope-click (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-scope-click - 0.1+14.04.20140326-0ubuntu1

---------------
unity-scope-click (0.1+14.04.20140326-0ubuntu1) trusty; urgency=low

  [ Alejandro J. Cura ]
  * Fix quoting of pkcon command so filenames with spaces don't break
    (LP: #1294631)

  [ Rodney Dawes ]
  * Drop the old vala based scope.
  * Add errors handling in the reviews backend. Move Cancellable to
    click::web:: namespace for re-use elsewhere.
 -- Ubuntu daily release <email address hidden> Wed, 26 Mar 2014 14:50:01 +0000

Changed in unity-scope-click (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.