GNOME Bugzilla – Bug 741475
Evince does not truncate too long document titles for print job name
Last modified: 2015-10-09 14:57:18 UTC
Created attachment 292657 [details] Sample file with long Title attribute When printing, Evince creates print job names using the title of the PDF being printed. This job name can however be too long, and in such a case CUPS refuses to print it. The attached file can be used to reproduce the problem, which happens to me on Ubuntu Trusty with Evince 3.10.3 and CUPS 1.7.2. The CUPS error log says: D [13/Dec/2014:11:18:27 +0100] Print-Job ipp://localhost:631/printers/Hewlett-Packard-HP-LaserJet-1200 D [13/Dec/2014:11:18:27 +0100] [Job ???] Auto-typing file... I [13/Dec/2014:11:18:27 +0100] [Job ???] Request file type is application/pdf. D [13/Dec/2014:11:18:27 +0100] Print-Job client-error-attributes-or-values-not-supported: Bad job-name value: "job-name": Bad name value "nyilatkozat.pdf — 8. sz. melléklet: Jogi személy vagy jogi személyiséggel nem rendelkező szervezet (ideértve egyszemélyes kft. egyszemélyes zrt. és egyéni cég is) ügyfél nyilatkozata a tényleges tulajdonos személyéről (első üzleti kapcsolat létesítésekor/adatváltozáskor)" - bad length 297 (RFC 2911 section 4.1.2). E [13/Dec/2014:11:18:27 +0100] [Client 14] Returning IPP client-error-attributes-or-values-not-supported for Print-Job (ipp://localhost:631/printers/Hewlett-Packard-HP-LaserJet-1200) from localhost D [13/Dec/2014:11:18:27 +0100] [Client 14] Content-Length: 794 RFC 2911 section 4.1.2 says: The 'name' attribute syntax is essentially the same as 'text', including the REQUIRED support of UTF-8 except that the sequence of characters is limited so that its encoded form MUST NOT exceed 255 (MAX) octets. https://tools.ietf.org/html/rfc2911#section-4.1.2 So I think Evince should truncate the job-name to be compliant with the RFC.
It is now fixed in gtk+. Long names are now truncated. Thx for the report and the info about this RFC. https://git.gnome.org/browse/gtk+/commit/?id=70f577251ff3dff5b11b2040aee5aa3efe26da9d
Felipe, we should closed this as fixed then
I don't have the bugzilla permissions for that. :)
Felipe, I just added you the permission to editbugs, which I think should allow you to close this one :-)