google / cloud-print-connector

Google Cloud Print Connector
BSD 3-Clause "New" or "Revised" License
764 stars 184 forks source link

Multiple local printers not displaying properly on Android clients #404

Open 69Nova opened 6 years ago

69Nova commented 6 years ago

I am using the gcp-cups-connector on a Debian 9 system, from a fresh clone and "go" build on 3/28/18.

I added a single printer (MFC-7460DN) in CUPS, and ran the connector on host 192.168.1.28, after configuring the connector for local printing only. Everything looked fine on an Android client device (host 192.168.1.36, Android 6.0 with CloudPrint 1.37) and the local printer was discovered and displayed properly.

I then added a second printer (HL-5250DN) while the connector was still running. I started capturing the mDNS packets right before adding the second printer, and have attached them here.

At 13:54:57, the connector announces the new printer, and for a few seconds the display is correct on the Android device, which I had left at the printer selection drop-down and watched for live changes -- both printers are displayed correctly.

But then by 13:55:15, after a PTR request for privet services from the Android device, the display changed on the Android device to show two printers with the same name (MFC-7460DN). Printing to either results in the job going to the actual MFC-7460DN hardware.

ChromeOS and Chrome browser (with any OS under it) do not exhibit this behavior.

Please let me know if there is any other data that you need. I can reproduce this on command each and every time.

Thanks.

Here are my attachments: DebugCaptures.zip