[cups.bugs] CheckPolicy() in get_job_attrs() function (ipp.c)

Michael Sweet msweet at apple.com
Wed Nov 25 10:43:25 PST 2009


On Nov 24, 2009, at 8:09 AM, Serj Kalichev wrote:
> Hello.
> 
> Why get_job_attrs check policy against DefaultPolicyPtr but not against policy of job's printer?
> 
> if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK)
> 
> Is it bug or feature?


It could be considered a bug, however job objects are not always attached to a single printer (i.e. classes map to 1 or more printers) - checking the default policy was an implementation decision. however it does appear that Get-Jobs (get_jobs) uses the printer's policy when listing jobs for a specific printer so we would consider changing this in a future release of CUPS.

Please file a bug report at:

    http://www.cups.org/str.php

Thanks!

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups-devel mailing list