istopwg / ippsample

IPP sample implementations.
http://istopwg.github.io/ippsample
Apache License 2.0
225 stars 83 forks source link

Connect to ippserver results in client-error-bad-request #266

Closed dimonic closed 2 years ago

dimonic commented 2 years ago

ippserver is run with the test printers conf files for attributes

Using ubuntu 20 LTS, settings->printers->Server->Connect

2022-07-27T13:59:32.898Z [Client 4] CUPS-Get-Printers client-error-bad-request (Missing required attributes in request.) 2022-07-27T13:59:32.898Z [Client 4] Response: version=2.0 2022-07-27T13:59:32.898Z [Client 4] Response: status-code=client-error-bad-request(0400) 2022-07-27T13:59:32.898Z [Client 4] Response: request-id=72 2022-07-27T13:59:32.898Z [Client 4] Response: operation-attributes-tag 2022-07-27T13:59:32.898Z [Client 4] Response: attributes-charset (charset) utf-8 2022-07-27T13:59:32.898Z [Client 4] Response: attributes-natural-language (naturalLanguage) en-us 2022-07-27T13:59:32.899Z [Client 4] Response: status-message (textWithoutLanguage) Missing required attributes in request. 2022-07-27T13:59:32.899Z [Client 4] OK 2022-07-27T13:59:32.899Z [Client 4] serverRespondHTTP: Sending 133 bytes of IPP response (Content-Length=133) 2022-07-27T13:59:32.899Z [Client 4] serverRespondHTTP: Sent IPP response. 2022-07-27T13:59:32.899Z [Client 4] serverRespondHTTP: Flushing write buffer. 2022-07-27T13:59:33.002Z [Client 4] Client closed connection. 2022-07-27T13:59:33.002Z [Client 4] Closing connection from "52.94.133.130". 2022-07-27T14:00:02.501Z [Client 3] Closing connection from "52.94.133.130".

Same occurs using lp as client.

michaelrsweet commented 2 years ago

@dimonic ippserver is not a CUPS server and won't work directly with the "lp" command... ippserver printers should (depending on the printer attributes you supply) work with CUPS' IPP Everywhere support where the local cupsd will handle queuing, transforms, and sending the jobs to ippserver.