Bug 1221159

Summary: CUPS backend checks wrong port for remote printers
Product: Red Hat Enterprise Linux 7 Reporter: Marek Kašík <mkasik>
Component: gtk2Assignee: Marek Kašík <mkasik>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact: Jana Heves <jsvarova>
Priority: unspecified    
Version: 7.2CC: jsvarova, mclasen, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gtk2-2.24.28-1.el7 Doc Type: Bug Fix
Doc Text:
Previously, the CUPS backend checked incorrect port to connect to remote printers. Consequently, getting printer information failed and the "Print" button became insensitive. A patch has been provided to fix this bug, making sure CUPS checks the correct port. As a result, the "Printers" dialog displays the information and the "Print" button is sensitive as expected
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 08:18:25 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 Marek Kašík 2015-05-13 11:50:40 UTC
Description of problem:
When CUPS backend checks connection to remote CUPS server, it calls ippPort() to get port to which it tries to connect. This is wrong since the remote server can have different port from the one defined locally.
This is similar problem to the one from the bug #909454 but it needs to have cups-browsed service active to cause a problem because browsing subsystem has changed since then (it uses DNSSD now).


Steps to Reproduce:
1. set sharing of printers on a remote server (RHEL6 preferably because it uses CUPS protocol for browsing) and use a non-standard port number
2. point your local /etc/cups/cup-browsed.conf to the server via BrowsePoll (the name of the remote CUPS server has to be resolvable)
3. try to select a printer from the server in gtk print dialog


Actual results:
"Getting printer information failed" and the 'Print' button is insensitive.


Expected results:
The dialog gets the information and the 'Print' button is sensitive.


Additional info:
possible duplicate is #1154038 (has to be confirmed yet)

Comment 1 Matthias Clasen 2015-05-14 20:26:57 UTC
This fix is included in the rebase build

Comment 4 errata-xmlrpc 2015-11-19 08:18:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2116.html