[cups.bugs] [MOD] STR #3254: CUPS-Get-PPDs fails when ppd-make-and-model contains "+"
twaugh.redhat
twaugh at redhat.com
Mon Jul 6 09:18:33 PDT 2009
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
When a CUPS-Get-PPDs IPP operation has a ppd-make-and-model attribute
containing the "+" character, the operation fails because cups-driverd is
given too many arguments.
The solution is to URL-encode that character in url_encode_string().
Patch attached. Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=509586
Simple test case using pycups:
#!/usr/bin/python
import cups
c=cups.Connection()
c.getPPDs(ppd_make_and_model="Lexmark Optra R+ Foomatic/Postscript")
Link: http://www.cups.org/str.php?L3254
Version: 1.4rc1
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Fixed-cups-driverd-argument-vector-when-model-name-c.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20090706/49ecf5f2/attachment.ksh>
More information about the cups
mailing list