Confusing error message when saving file

Asked by Daniel Robitaille

bug initially reported using reportbug

---------- Forwarded message ----------
From: Sam Morris <email address hidden>
To: Ubuntu Bug Tracking System <email address hidden>
Date: Tue, 23 May 2006 13:04:28 +0100
Subject: xsane: Confusing error message when saving files
Package: xsane
Version: 0.97-3ubuntu2
Severity: normal

My Dad was scanning some documents and was very confused by the error
message that xsane gives when he tried to save a file name containing the
forward slash character, '/'. The error message is:

 Could not create secure file (may be a link does exist): %(filename)s

A replacement error message needs to make two things clear to the

 1. That '/' is a directory separator and can not appear in a file name
 2. That the relative path that he entered refers to a directory that
    does not exist

-- System Information:
Debian Release: testing/unstable
 APT prefers breezy-updates
 APT policy: (600, 'breezy-updates'), (600, 'breezy-security'), (600, 'breezy')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-10-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages xsane depends on:
ii libatk1.0-0 1.10.3-0ubuntu2 The ATK accessibility toolkit
ii libc6 2.3.5-1ubuntu12.5.10.1 GNU C Library: Shared libraries an
ii libcairo2 1.0.2-0ubuntu1.1 The Cairo 2D vector graphics libra
ii libfontconfig1 2.3.2-1ubuntu4 generic font configuration library
ii libgimp2.0 2.2.8-2ubuntu6 Libraries necessary to Run the GIM
ii libglib2.0-0 2.8.3-0ubuntu1 The GLib library of C routines
ii libgtk2.0-0 2.8.6-0ubuntu2.1 The GTK+ graphical user interface
ii libieee1284-3 0.2.10-1 cross-platform library for paralle
ii libjpeg62 6b-10 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.10.1-0ubuntu1 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-1ubuntu3 PNG library - runtime
ii libsane 1.0.17-1ubuntu3 API library for scanners
ii libtiff4 3.7.3-1ubuntu1.1 Tag Image File Format (TIFF) libra
ii libusb-0.1-4 2:0.1.10a-17ubuntu1 userspace USB programming library
ii libx11-6 1:6.2.1+cvs.20050722-8 X11 client-side library
ii libxcursor1 1.1.4-0ubuntu5 X cursor management library
ii libxext6 1:6.4.3-3 X11 miscellaneous extension librar
ii libxfixes3 1:3.0.0-3 X11 miscellaneous 'fixes' extensio
ii libxi6 1:1.3.0-2 X11 Input extension library
ii libxinerama1 1:1.1.0+cvs.20050821-1 X11 Xinerama extension library
ii libxrandr2 1:1.0.2-2 X11 RandR extension library
ii libxrender1 1:0.9.0-1 X Rendering Extension client libra
ii xsane-common 0.97-3ubuntu2 GTK+-based X11 frontend for SANE (
ii zlib1g 1:1.2.3-3ubuntu4 compression library - runtime

Versions of packages xsane recommends:
ii epiphany-browser [ 1.8.2-0ubuntu1 Intuitive GNOME web browser
ii firefox [www-brows 1.0.8-0ubuntu5.10 lightweight web browser based on M
ii lynx [www-browser] 2.8.5-2ubuntu0.5.10.1 Text-mode WWW Browser
ii w3m [www-browser] 0.5.1-3ubuntu1 WWW browsable pager with excellent

-- no debconf information

Question information

English Edit question
Ubuntu xsane Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brian Murray (brian-murray) said :

We are closing this bug report as it concerns Breezy which is no longer supported. However, please reopen it if it is still an issue with a supported version of Ubuntu and feel free to submit bug reports in the future.

Revision history for this message
Sam Morris (yrro) said :

This is still present in gutsy.

Please don't close bugs like this without taking the time to see if they are still reproducable! This is *very* annoying and makes me much less inclined to bother reporting bugs in the future. See <> for more information.

Revision history for this message
Brian Murray (brian-murray) said :

I've recreated this bug report using xsane version 0.99+0.991-3ubuntu5 on Gutsy Gibbon.

Steps to reproduce:
1) Scan an image
2) Choose save and use a file name with a "/" in the name

Revision history for this message
Hew (hew) said :

This issue still exists in Hardy Heron with xsane 0.995-1ubuntu1

Revision history for this message
Jaap (jpbn) said :

error while saving could not create secure file.
xsane tells me this error when I am scanning a document.
I do not try to name this document with backslashes or other signs, just a name .

someone tries to close this bug, but it is a new bug. happens only after latest upgrade.

Revision history for this message
Jaap (jpbn) said :

I do try to find a solution. This bug with the slash in the file name is helping me in overcoming a problem.

Xsane do make the scanner (HP scanjet 8300) make a scan.
a file appears on my screen xsane-conversion-avision:libusb:002:004.ppm-1000-bUVP3N.
(if i do not use this bug with the slash in the file name this file disappears wtihin some seconds.)
by using this bug I can edit the file xsane-conversion-avision:libusb:002:004.ppm-1000-bUVP3N and safe it as a jpg-file with the scanned file. But this way I cannot save it as PDF-file.

Can you help with this problem?

Provide an answer of your own, or ask Daniel Robitaille for more information if necessary.

To post a message you must log in.