Skip to content
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

Backporting patch for #5211 to 2.2.7 #5587

Closed
rcoss opened this issue May 28, 2019 · 2 comments
Closed

Backporting patch for #5211 to 2.2.7 #5587

rcoss opened this issue May 28, 2019 · 2 comments

Comments

@rcoss
Copy link

rcoss commented May 28, 2019

It seems as if patch for #5211 has not been ported back to 2.2.7
SERVER: cups 1.1.23

CLIENT: Ubuntu 18.04.2 LTS / cups 2.2.7-1ubuntu2.5 / lpr
CLIENT: /etc/cups/client.conf: ServerName printserver.xx.yy.zz/version=1.1
CLIENT: cupsd NOT running, cups-browsed NOT running, just using lpr
CLIENT:
rcoss@my_host:~$ lpr /etc/hosts
lpr: Bad Request

Wireshark capture follows:

@rcoss
Copy link
Author

rcoss commented May 28, 2019

IPP Request #1

version: 1.1
operation-id: CUPS-Get-Default (0x4001)
request-id: 1
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: 'utf-8'
...
...
requesting-user-name (nameWithoutLanguage): 'rcoss'
name: requesting-user-name
nameWithoutLanguage value: 'rcoss'
end-of-attributes-tag

IPP Response #1

version: 1.1
status-code: Successful (successful-ok-ignored-or-substituted-attributes)
request-id: 1
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: 'utf-8'
attributes-natural-language (naturalLanguage): 'en-us'
name: attributes-natural-language
naturalLanguage value: 'en-us'
printer-attributes-tag
printer-uri-supported (uri): 'ipp:https://printserver:631/printers/pylj4250'
name: printer-uri-supported
uri value: 'ipp:https://printserver:631/printers/pylj4250'
...
...
printer-make-and-model (textWithoutLanguage): 'HP LaserJet 4250 Postscript (dm.uba.ar)'
name: printer-make-and-model
textWithoutLanguage value: 'HP LaserJet 4250 Postscript (dm.uba.ar)'
printer-type (enum): 37076
name: printer-type
enum value: 37076
end-of-attributes-tag

============================
When client sends IPP request for Create-Job, switches to use version 2.0!!,
but server only supports IPP version 1.1

============================

IPP Request #5

version: 2.0
operation-id: Create-Job (0x0005)
request-id: 5
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: 'utf-8'
attributes-natural-language (naturalLanguage): 'en-us'
name: attributes-natural-language
naturalLanguage value: 'en-us'
printer-uri (uri): 'ipp:https://printserver:631/printers/pylj4250'
name: printer-uri
uri value: 'ipp:https://printserver:631/printers/pylj4250'
requesting-user-name (nameWithoutLanguage): 'rcoss'
name: requesting-user-name
nameWithoutLanguage value: 'rcoss'
job-name (nameWithoutLanguage): '(stdin)'
name: job-name
nameWithoutLanguage value: '(stdin)'
job-attributes-tag
job-sheets (1setOf nameWithoutLanguage): 'none','none'
name: job-sheets
nameWithoutLanguage value: 'none'
nameWithoutLanguage value: 'none'
end-of-attributes-tag

HTTP Response #5

HTTP/1.1 400 Bad Request\r\n
Date: Mon, 27 May 2019 15:32:07 GMT\r\nç
Server: CUPS/1.1\r\n
Content-Language: en\r\n
Upgrade: TLS/1.0,HTTP/1.1\r\n
Connection: close\r\n
Content-Type: text/html\r\n
Content-Length: 156\r\n
\r\n
Line-based text data: text/html (1 lines)

<TITLE>400 Bad Request</TITLE>

Bad Request

Your browser sent a request that this server could not understand.\n

@michaelrsweet
Copy link
Collaborator

[branch-2.2 9b48d16] Back-port more compatibility fixes from CUPS 2.3.x - IPP/1.1 compatibility with old versions of CUPS... (Issue #5587)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants