Bug 1386751

Summary: cups-lpd program did not catch all legacy usage of ISO-8859-1
Product: Red Hat Enterprise Linux 7 Reporter: Moritz Gebhardt <gebhardt>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: fabian.krack, gebhardt, psklenar, thozza, zab
Target Milestone: rcKeywords: FastFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-1.6.3-30.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 13:41:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1400961, 1465928, 1472751    
Attachments:
Description Flags
Patch from upstream git
none
Proposed patch none

Description Moritz Gebhardt 2016-10-19 14:48:24 UTC
Description of problem:

Unable to print from Windows (7) on a Cups-Server with german umlauts in the filename. For example "täst.pdf"

Version-Release number of selected component (if applicable):
cups-2.2.1

How reproducible:
Print a file from Windows on a Cups-Server with umlauts in the filename like "äpfel.pdf"

Actual results:
Doesn't print!

error_log:
D [07/Oct/2016:09:41:00 +0200] Create-Job client-error-attributes-or-values-not-supported: Bad job-name value: \"job-name\": Bad name value \"t�st.pdf\" - bad UTF-8 sequence (RFC 2911 section 4.1.2).



Expected results:
Should print.

Additional info:
Cups already fixed the problem.
https://github.com/apple/cups/commit/5babee86cb84055bce3597ab537abe4a6c6d8dbc

Please add to repository.

Comment 2 Zdenek Dohnal 2016-10-20 07:44:35 UTC
Hi Moritz,

thank you for contacting us, do you have this problem on RHEL7? Because CUPS' version is 1.6.3 on RHEL7. Don't you have this on Fedora? Because CUPS' version, which you mentioned, is in Fedora rawhide. I will apply this patch in rawhide.

Comment 3 Moritz Gebhardt 2016-10-21 11:41:42 UTC
Hi Zdenek,

thanks for your quick reply and your help. I'am using CentOS 7.2. But I'm sure the problem is the same with CUPS 1.6.3. because CUPS changed to only UTF-8 in version 1.3 (or so).

Comment 4 Zdenek Dohnal 2016-10-21 13:50:58 UTC
Ok, I will applicate the patch and give here link to scratch build, if you like to test it.

Comment 5 Moritz Gebhardt 2016-10-25 20:16:35 UTC
Yes, thanks a lot.
regards

Comment 6 Zdenek Dohnal 2016-10-26 07:38:10 UTC
Moritz, I'm sorry, I have to focus on other things right now, so I will create scratch build in two weeks. Is it OK?

Comment 7 Moritz Gebhardt 2016-10-26 09:20:21 UTC
Of course.

Comment 8 Zdenek Dohnal 2017-07-11 08:46:50 UTC
Created attachment 1296135 [details]
Patch from upstream git

Comment 14 Zdenek Dohnal 2017-09-21 15:29:44 UTC
Created attachment 1329050 [details]
Proposed patch

Comment 21 errata-xmlrpc 2018-04-10 13:41:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0782