Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***