'Print to file' fails silently if file name contains special characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug can be replicated like this:
- Select 'Print to File' from the 'General' tab inside the 'Print' window.
- As part of the file name in the 'Name:' box, include a special character such as ":" or "/".
- Click on the 'Print' button.
- The 'Print' window then closes, giving the impression that the page has been printed successfully to file, e.g. as a pdf.
- However, no file has been created, and no error message is generated.
This bug could leave a user thinking that the pdf had been created, but they would then be unable to find it later. It would be helpful if the package could generate an error message at this point to alert the user that the 'Print to File' command had been unsuccessful.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: firefox 45.0+build2-
ProcVersionSign
Uname: Linux 4.2.0-35-generic x86_64
NonfreeKernelMo
AddonCompatChec
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
BuildID: 20160304114936
Channel: Unavailable
CurrentDesktop: Unity
Date: Fri Apr 8 18:13:13 2016
ExecutablePath: /usr/lib/
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
IncompatibleExt
InstallationDate: Installed on 2016-03-14 (25 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
IpRoute:
default via 192.168.1.254 dev wlp12s0 proto static metric 600
169.254.0.0/16 dev wlp12s0 scope link metric 1000
192.168.1.0/24 dev wlp12s0 proto kernel scope link src 192.168.1.87 metric 600
Locales: extensions.sqlite corrupt or missing
Plugins: Shockwave Flash - /usr/lib/
PrefSources: prefs.js
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/bash
Profiles: Profile0 (Default) - LastVersion=
RunningIncompat
SourcePackage: firefox
Themes: extensions.sqlite corrupt or missing
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/07/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A14
dmi.board.name: 0G848F
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Inspiron 1545
dmi.sys.vendor: Dell Inc.
Further investigation suggests that the position of the special character is relevant. A file name containing a word with a leading colon (e.g. 'Test :email 1.pdf') will generate a pdf, whereas a file name containing a word with a trailing colon (e.g. 'Test: email 2.pdf') generates no pdf and no error message.