Bug 1230862

Summary: cups-browsed with underscore in print queue name
Product: Red Hat Enterprise Linux 7 Reporter: Devin Bougie <devin.bougie>
Component: cups-filtersAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: jpopelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 15:56:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Devin Bougie 2015-06-11 16:09:53 UTC
Description of problem:
Our EL7 clients are using cups-browsed to discover printers shared from our central EL7 cups server.  Most of our queues have underscores in their names, and for some reason cups-browsed is changing the underscores to dashes.  This breaks the queues for our EL7 clients.

When running cups-browsed --debug, for example, we see:
------
cups-browsed: browse packet received from x.x.x.x
cups-browsed: browsed queue name is w320_br_5470
cups-browsed: Found CUPS queue: w320-br-5470 on host x.x.x.x.
cups-browsed: Bonjour IDs: Service name: "Wilson 3rd Floor Black and White Duplex", Service type: "", Domain: ""
------

Which then gives:
------
lpstat -v w320-br-5470
device for w320-br-5470: ipp://x.x.x.x:631/printers/w320-br-5470
------

This doesn't work, as the queue on the server is actually w320_br_5470.

When looking at the cups-filters changelog, I see:

------
CHANGES IN V1.0.62
- cups-browsed: Allow underscore characters in print queue names.
Thanks to Tim Waugh from Red Hat for the bug report (Bug #1241).
------

Version-Release number of selected component (if applicable):
cups-1.6.3-17
cups-filters 1.0.35-15

How reproducible:
Always

Steps to Reproduce:
1. use cups-browsed on EL7 to connect to shared queues that contain an underscore in their name

Actual results:
The underscore in the queue name is replaced with a dash.

Expected results:
The queue name on the client should match the queue name on the server.

Comment 3 Devin Bougie 2015-06-11 21:34:57 UTC
For what it's worth, cups-filters 1.0.62 does appear to resolve this issue.  Any supportable fix for RHEL7 would be greatly appreciated.

Comment 4 Tim Waugh 2015-06-16 15:56:11 UTC

*** This bug has been marked as a duplicate of bug 1167408 ***