Bug 1257635 - [fix available] sometimes LO doesn't see cups printers
[fix available] sometimes LO doesn't see cups printers
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libreoffice (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Caolan McNamara
Desktop QE
: Regression
: 1257715 (view as bug list)
Depends On:
Blocks: 1297830 1313485
  Show dependency treegraph
Reported: 2015-08-27 09:54 EDT by Bill Sanford
Modified: 2016-11-03 15:01 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-11-03 15:01:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Sanford 2015-08-27 09:54:15 EDT
Description of problem:
I install LO on a RHEL 7.2 install without printers configured. I run LO for a while and exit. I then:

* vim /etc/cups/cupsd.conf and add "BrowsePoll cups.bos.redhat.com:631"
* vim /etc/cups/client.conf and add "ServerName cups.bos.redhat.com:631" 

service cups restart

After the restart, LO only still has "Generic Printer" in the list of printers. If I then reboot the system, then I see the full list of printers that I would expect to see after the restart command.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. See Above.

Actual results:
Printers do not show up after "service cups restart"

Expected results:
Printers DO show up after "service cups restart"

Additional info:
Comment 2 Caolan McNamara 2016-01-21 09:20:06 EST
Fresh install of RHEL-7.2 + yum update to LibreOffice (etc) + vpn into redhat network. Followed the exact steps to reproduce and I get a full list of printers.

But if I leave libreoffice alone for a while, and revisit then it says just "generic printer", but another attempt to launch the print dialog will show them again. Maybe there is a timeout issue or something of that nature at work.
Comment 3 Caolan McNamara 2016-01-22 05:51:00 EST
*** Bug 1257715 has been marked as a duplicate of this bug. ***
Comment 4 Caolan McNamara 2016-01-22 06:10:02 EST
We're calling  httpConnectEncrypt and then httpClose on its get and then using cupsGetDests and sometimes we get 0 printers back. If I change this to the more logical httpConnectEncrypt and use its result with cupsGetDests2 and then clean up with httpClose I consistently get results so I reckon we can solve this that way.
Comment 5 David Tardon 2016-03-02 03:36:35 EST
Fixed by rebase to 5.0.x: bug 1290148.
Comment 8 Bill Sanford 2016-09-01 11:33:08 EDT

Comment 10 errata-xmlrpc 2016-11-03 15:01:37 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.