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

Supported job attributes in printer clusters #10

Open
kabassanov opened this issue Mar 15, 2023 · 2 comments
Open

Supported job attributes in printer clusters #10

kabassanov opened this issue Mar 15, 2023 · 2 comments

Comments

@kabassanov
Copy link

Hello,

On linux clients when the same printer is defined through different uris ( like ipps://... vs ipp:// ) a check is made in order to verify whether the printer supports the requested job attributes (supports_job_attributes_requested in cups-browsed.c). But there is a problem because human readable values are compared to internal ones. Example: SinglePortrait vs staple-top-left. I'm not sure which one should be remapped before comparison...

@tillkamppeter tillkamppeter transferred this issue from OpenPrinting/cups-filters Apr 9, 2023
@deepak0405
Copy link
Contributor

Hey @kabassanov, Thanks for reporting the issue. Can you please share how can I reproduce this issue ?

@kabassanov
Copy link
Author

Hi @deepak0405,

Everything started when I tried to implement the same behavior as the one of some AirPrint printers registering ipp and ipps on separate tcp ports (631 and 443 for instance). The reason, there was an error with some terminal clients and I supposed that there was a mess with the SSL/NO SSL switching on the server port 631. I opened an issue about this: OpenPrinting/cups#638, but it seemed that it was not easy to validate.

Anyway, I patched in a testbed my cupsd code in order to annonce and send ipps traffic to tcp port 632.
dirsvc.c.diff.txt

with in addition:
SSLListen myhost:632 in the cupsd config file.

With this, on the client side, I started receiving two different annonces for the same printer, thus creating a printer cluster. But it was impossible to use it, because the attribute mismatch was leading to the conclusion that both printers were not supporting the requested option.

I have no idea how to reproduce the issue otherwise. If possible, see if an AirPrint printer with ipp and ipps enabled leads to the same cluster creation...

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

No branches or pull requests

2 participants