[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#908573: cups-browsed: Filtering with TXT record field names not working



Package: cups-browsed
Version: 1.21.2-1
Severity: normal
Tags: upstream


Three remote printers:

= enp0s18 IPv6 LaserJet-300 @ desktop                        Internet Printer     local
   hostname = [desktop.local]
   address = [fe80::211:2fff:fef6:41c3]
   port = [631]
   txt = ["printer-type=0x1016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c10e0641-de88-362c-4d72-297ff8684f70" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP
LaserJet 2200)" "priority=0" "adminurl=https://desktop.local:631/printers/LaserJet-300"; "ty=HP LaserJet 2200 - CUPS+Gutenprint v5.2.11" "rp=printers/LaserJet-300" "qtotal=1" "txtvers=1"]

= enp0s18 IPv6 realq @ desktop                               Internet Printer     local
   hostname = [desktop.local]
   address = [fe80::211:2fff:fef6:41c3]
   port = [631]
   txt = ["printer-type=0x80F04E" "printer-state=3" "Copies=T" "Color=T" "TLS=1.2" "UUID=23dbfeca-fd40-3640-7355-a8cbce96bb3b" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(CUPS v1.1)" "priority=0" "adminurl=https://desktop.local:631/printers/realq"; "ty=Generic CUPS-PDF Printer (w/ options)" "rp=printers/realq" "qtotal=1" "txtvers=1"]

= enp0s18 IPv4 ENVY4500                                      Internet Printer     local
   hostname = [envy4500.local]
   address = [192.168.7.235]
   port = [631]
   txt = ["Scan=T" "Duplex=T" "Color=T" "UUID=1c852a4d-b800-1f08-abcd-308d99fafac2" "Fax=F" "note=Josie'sParlour" "adminurl=http://envy4500.local./#hId-pgAirPrint"; "mac=30:8d:99:fa:fa:c2" "priority=20" "usb_MDL=ENVY 4500 series" "usb_MFG=HP" "product=(HP ENVY 4500 series)" "ty=ENVY 4500 series" "URF=CP1,MT1-2-8-9-10-11,OB9,OFU0,PQ3-4-5,RS300-600,SRGB24,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,DM3,IS1,V1.3" "kind=document,envelope,photo" "PaperMax=<legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf" "qtotal=1" "txtvers=1"]

Filter out realq with

  BrowseFilter duplex

in cups-browsed.conf and restart cups-browsed.

  briandesktop3:~# lpstat -a
  ENVY4500 accepting requests since Tue 11 Sep 2018 11:29:26 BST
  LaserJet_300_desktop accepting requests since Tue 11 Sep 2018 11:29:25 BST
  realq_desktop accepting requests since Tue 11 Sep 2018 11:29:25 BST

The lpstat output is the same for

  BrowseFilter color

     BrowseFilter pdl hp-PCL

gives "lpstat: No destinations added", as does

     BrowseFilter port 9100

Cheers,

Brian.


Reply to: