-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CUPS uses different get-printer-attributes requests for polling IPP printer capabilities at different places #5484
Comments
@mark246, could you also test your printer with CUPS itself and report here?
Please attach all the results ( |
@tillkamppeter The lpadmin list or "all" and "media-col-database" will contain the complete set of attributes needed. Without "media-col-database" being requested explicitly, the generated PPD will not contain proper margin information. Queued up for the next 2.2.x release... |
Why did you use |
@tillkamppeter Because "all" should not be necessary/used for this particular case. But obviously we have a POS printer that doesn't following the &$!^%%# standards. I will change them to "all" and "media-col-database". |
…pparently do not know how to read (Issue #5484)
…pparently do not know how to read (Issue #5484)
CUPS generates PPD files for driverless IPP printing at 3 places and at each place it uses a different get-printer-attributes IPP request for obtaining the printer capability info which could lead to different PPD files. The IPP requests differ only by their "requested-attributes" attribute. These are the 3 places:
lpadmin
utility (with "-m everywhere
", filesystemv/lpadmin.c
) supplies the list{"job-template", "printer-defaults", "printer-description", "media-col-database"}
as "requested-attributes" attribute.create_local_bg_thread()
inscheduler/ipp.c
) simply uses{"all"}
.get_printer_ppd()
function incgi-bin/admin.c
) does not add a "requested-attributes" attribute at all.In addition,
ipptool
does not supply a "requested-attributes" attribute (like the web interface) with the oldget-printer-attributes.test
and uses{"all", "media-col-database"}
with the newget-printer-attributes-2.0.test
.I have found out this when trying to find a fix for cups-filters issue #22 for which I got the this pull request. It made the impression that the way I do it in cups-filters (it is the method of
lpadmin
) is wrong and checked how CUPS actually does it.What is the "correct" standard-conforming method? CUPS should use this method at every place.
The text was updated successfully, but these errors were encountered: