-
Notifications
You must be signed in to change notification settings - Fork 473
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
cupsGetDests2() lists local printers even if remote server specified #5135
Comments
The pointer should still be used, but keep in mind that support for non-local CUPS servers has been deprecated since 2.0 due to sandboxing and other security "features" preventing clients from accessing network printers directly - that's one of the reasons we added the new CUPS-Create-Local-Printer operation so that cupsd did all of the communications for you... Investigating... |
OK, I see how cupsGetDests2 is calling cupsEnumDests, which doesn't have a http_t * argument... Will fix this for 2.2.5... |
I'll just want to mention this issue breaks searching for remote printers in gnome (in control-center package). |
I created patch, which does the trick (but it changes cupsEnumDests() and cupsEnumDestsBlock() API - it adds new parameter http_t *http - so I am not sure if it is right way to do it). #5136 After applying this patch searching for printers in control-center works. |
Mike, I think commit didn't propagate to github master. |
- Make a local cups_enum_dests function that accepts a http_t *. - Have both cupsEnumDests and cupsGetDests2 call cups_enum_dests.
Thank you for the fix. |
Oh, nice, I can see it now - thank you for the fix Mike! |
cupsGetDests2 function lists local printers even if it get "http_t *" parameter which points to a remote server. It seems to me that this is caused by the fix of the issue #4993. The new implementation does not use the "http" parameter at all.
Was it intentional?
The text was updated successfully, but these errors were encountered: