[cups.general] Repetitive Error Message: /printers/printers no good!
Lou H. Goddard
goddarlh at HBCS.Org
Mon Mar 3 05:40:12 PST 2008
Greetings,
My printer spooler recently began spewing out the following error
message:
get_printer_attrs: resource name '/printers/printers' no good!
This behavior began after I updated my CUPS installation with the
provided Redhat RPMS.
I understand this could be a problem unique to Redhats repackaging of
CUPS. I will investigate there as well.
Previous RPM: cups-1.1.22-0.rc1.9.20.2.i386.rpm
Current RPM: cups-1.1.22-0.rc1.9.20.2.el4_6.5.i386.rpm
Can someone assist me in understanding the error message? I downloaded
the source to CUPS and found the relevant snippets of code in printers.c
and ipp.c. The IPP string being passed from CUPS to CUPS over the
loopback is causing this error message to be triggered. The string
specifically is: "ipp:///printers/printers" I am having some difficulty
tracing where this is coming from. I am unable to find any obvious
mistakes in my configuration. Additionally, this message never existed
on my system prior to the patch.
At least one other user, Steve Snyder, observed this behavior. See his
mail posting here: http://marc.info/?l=centos&m=119990817725652&w=2
I've included some information I have gathered below.
Thanks in advance,
Lou Goddard
On the loopback interface I found this conversation the spooler was
having with itself. This seems to be the trigger for the error message.
POST / HTTP/1.1
Content-Length: 190
Content-Type: application/ipp
Host: localhost
.........G..attributes-charset..utf-8H..attributes-natural-language
...en-usE..printer-uri..
ipp:///printers/printersB..
requested-attributes..printer-nameB....printer-infoB....printer-loc
ation.HTTP/1.1 200 OK
Date: Sat, 01 Mar 2008 23:45:33 GMT
Server: CUPS/1.1
Connection: Keep-Alive
Keep-Alive: timeout=60
Content-Language: en_US
Content-Type: application/ipp; charset=iso-8859-1
Content-Length: 75
.........G..attributes-charset..utf-8H..attributes-natural-language
...en-us.
Scheduler/ipp.c
/*
* Is the destination valid?
*/
httpSeparate(uri->values[0].string.text, method, username, host,
&port, resource);
if ((dest = ValidateDest(host, resource, &dtype)) == NULL)
{
/*
* Bad URI...
*/
LogMessage(L_ERROR, "get_printer_attrs: resource name \'%s\' no
good!", resource);
send_ipp_error(con, IPP_NOT_FOUND);
return;
}
Scheduler/printers.c
/*
* 'ValidateDest()' - Validate a printer/class destination.
*/
const char * /* O - Printer or class name */
ValidateDest(const char *hostname, /* I - Host name */
const char *resource, /* I - Resource name */
cups_ptype_t *dtype) /* O - Type (printer or class)
*/
{
printer_t *p; /* Current printer */
char localname[1024], /* Localized hostname */
*lptr, /* Pointer into localized
hostname */
*sptr; /* Pointer into server name */
DEBUG_printf(("ValidateDest(\"%s\", \"%s\", %p)\n", hostname,
resource, dtype));
/*
* See if the resource is a class or printer...
*/
if (strncmp(resource, "/classes/", 9) == 0)
{
/*
* Class...
*/
resource += 9;
}
else if (strncmp(resource, "/printers/", 10) == 0)
{
/*
* Printer...
*/
resource += 10;
}
else
{
/*
* Bad resource name...
*/
return (NULL);
}
------------------ CONFIDENTIALITY NOTICE ---------------
This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.
------------------ CONFIDENTIALITY NOTICE ---------------
--------
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
More information about the cups
mailing list