Bug#903407: evince: Fail to generate valid print job for files with '&' in the name

Simon McVittie smcv at debian.org
Mon Jul 9 19:32:26 BST 2018


On Mon, 09 Jul 2018 at 12:50:35 -0400, Kit Haines wrote:
> I'm trying to print a document named "Legal Name - Option Cancel &
> Reissue Agreement.pdf"; but when I click print, I get the error (on
> the commandline):
...
> ** (evince:2460): WARNING **: Unimplemented annotation: POPPLER_ANNOT_INK, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase.
...
> (evince:2460): Gtk-WARNING **: Allocating size to EvSidebar 0x5632f76dc560 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
...
> (evince:2460): Gtk-WARNING **: Failed to set text '<b>Printing job “Legal Name - Option Cancel & Reissue Agreement.pdf”</b>' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &

Is there an observable bug, other than these warnings?

It sounds as though the missing part of your bug report might be: "when
I click Print, I get these warnings in the terminal *and the document
does not print*". Is that what's happening?

Or if the bug is something else (for instance if evince sends something
to the printer but the print job is invalid in some way), it might help
to make it clear what's going on if you rephrase your bug report as
answers to these questions:

* what did you do?

* what did you expect to happen? (this might seem a silly thing to ask,
  but it's valuable to confirm that what you expect matches what the
  package's maintainer expects)

* what actually happened?

* what workarounds did you try, and what was the result of each one?
  (whether successful or unsuccessful)

Log messages close to the time that you experienced this bug, from the
system log (/var/log/syslog or systemd Journal) and the printing system
logs (/var/log/cups/*), might also be helpful. Please censor these log
messages in whatever way you feel is appropriate, but make it clear what
you have censored, like you did with "Legal Name". Thanks for specifying
that the name you have been replacing with Legal Name doesn't contain
'&' or other special characters - that's useful.

> This is inconvenient because of the filter on the printer at my
> office.

Sorry, I don't understand this. Does your printer require particular
document names to be used? Does your printer require particular document
names to not be used? Is there some other filtering that is specific
to your printer or your office that makes this evince bug particularly
significant? Is this something that you expect to happen, or is it
something that happens but should not?

> I need to set the printer name to the approved document to
> print.

Please could you explain what you mean by this? Do you mean you have to
change the name *of the printer*, or do you mean you have to change the
filename of the document, or something else? Is this something that you
expect to happen, or is it something that happens but should not?

> I do not have this error when I copy the file to print
> `NoName.pdf'.

So to be clear, is renaming the PDF to a name with no '&' characters an
example of a workaround that you tried, that resulted in the result you
had initially expected?

> I expected evince to escape the file name for me.

If you print a document whose filename contains '&' from a different
application, for instance a blank LibreOffice document named
"Empty & Blank.odt", does that work?

If you print a PDF whose filename contains '&' from a different PDF
viewer, for instance xpf, mupdf or karbon, does that work?

Thanks,
    smcv



More information about the pkg-gnome-maintainers mailing list