OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
958 stars 174 forks source link

"Printer drivers and raw queues are deprecated" warning shown when it shouldn't(?) be #926

Closed sersorrel closed 3 months ago

sersorrel commented 3 months ago

As described at https://github.com/OpenPrinting/cups-sharing/issues/4#issuecomment-2005277465: I added my network printer at http://localhost:631/, clicking all the "IPP Everywhere" buttons, but still got the "Printer drivers and raw queues are deprecated and will stop working in a future version of CUPS" warning at the end:

image

The printer's "make and model" is listed in the web UI as "Generic IPP Everywhere Printer". If I click through "Modify Printer", I see its URL is ipp://[redacted].home:631/ipp/print, its make is "Generic", and its model is "Generic IPP Everywhere Printer - IPP Everywhere™".

Looking at REPORTING_ISSUES.md, I think it qualifies as "driverless", because:

(but I to be honest don't understand the first thing about what any of this is meant to look like, so I could be misinterpreting.)

If it is "driverless": that warning is being displayed incorrectly, right? And if it's not "driverless": am I setting it up wrong? What should I be doing?

zdohnal commented 3 months ago

Hi @sersorrel ,

"cups-sharing" daemon does not exist at the moment, so the correct place to report issues is here.

Does the printing work via this queue? I have a guess this might be the same issue as #347 - PPD generation is not finished at time, but PPD is created in the end.

If the printer works in the end, I would say it is #347 . If it does not, please write the exact steps (options you clicked on, strings you copied etc) when you installed the printer via web UI. I will try to follow them and if I don't get the same result, I will ask you for turning on debug logging, reproducing the issue and attaching debug logs.

michaelrsweet commented 3 months ago

OK, so this is a straight-up web interface template issue - the warning is shown regardless of the driver used, but it should only be shown when you aren't using the IPP Everywhere driver...

I'll update the web interface to just show this as needed...

michaelrsweet commented 3 months ago

Actually, the current code already skips the "printer added" page and shows the "set printer options" page. So it looks like "Generic IPP Everywhere Printer" is a static PPD file and not the auto-generated IPP Everywhere PPD...

At this point I'm inclined to say "behaves correctly" - when adding you want to choose the "IPP Everywhere™" model - not "Generic IPP Everywhere Printer".

sersorrel commented 3 months ago

Good to know!