hp-scan does not escape whitespaces in output file paths

Bug #1779741 reported by ce3a
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Unassigned

Bug Description

hp-scan fails opening the pdf output file, if the output file path contains white spaces.

Steps to reproduce the issue:

    cd some/path\ with\ spaces\
    hp-scan -spdf

scan.py seems not to escape spaces in file paths. Fixed locally by changing

    cmd = "%s %s &" % (pdf_viewer, output)

to

    cmd = "%s \"%s\" &" % (pdf_viewer, output)

in several places.

hp-scan version:
  HP Linux Imaging and Printing System (ver. 3.18.3)
  Scan Utility ver. 2.2

ce3a (ce3a)
description: updated
ce3a (ce3a)
Changed in hplip:
status: New → Confirmed
information type: Private Security → Public
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.