Bug 546013 - can not print to remote cups from firefox, gimp and evince
Summary: can not print to remote cups from firefox, gimp and evince
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Final
Hardware: i686 openSUSE 11.2
: P3 - Medium : Normal with 2 votes (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 08:09 UTC by Bernhard Wiedemann
Modified: 2012-07-31 20:12 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2009-10-11 08:09:50 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-1.3 Firefox/3.5.3

I have configured my cups printer-server via ServerName in /etc/cups/client.conf
and printing from ooffice and console (lpr) works well.
But the printer is not shown in the printer-dialog of firefox and evince.

Reproducible: Always

Steps to Reproduce:
1. configure network printer
2. open firefox
3. choose file/print
Actual Results:  
printer does not show up. Only "print to file" works.

Expected Results:  
network-printer should be selectable
Comment 1 Vincent Untz 2009-10-30 11:36:49 UTC
Does the printer appear in system-config-printer?
Comment 2 Bernhard Wiedemann 2009-10-31 19:25:18 UTC
Just retried on a VM with 11.2-RC1 and there it all just worked now. So might have been fixed since reported - or it is dependent on other factors (unluckily the original MS8 install was already overwritten, but could possibly re-install RC2 there).
Comment 3 Vincent Untz 2009-11-02 16:49:41 UTC
Thanks, closing, then.
Comment 4 Bernhard Wiedemann 2009-11-07 13:06:54 UTC
did see the bug again on another install (with KDE4):

How to reproduce:
- installed full 11.1 DVD
- use 11.2-RC2 DVD for upgrade
- echo ServerName printerserver.mydomain.de > /etc/cups/client.conf
- zypper in evince system-config-printer



> lpq
hp710c is ready
no entries

> system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 6846, in <module>
    focus_on_map)
  File "/usr/share/system-config-printer/system-config-printer.py", line 6794, in main
    print_test_page, focus_on_map)
  File "/usr/share/system-config-printer/system-config-printer.py", line 822, in __init__
    self.populateList()
  File "/usr/share/system-config-printer/system-config-printer.py", line 1472, in populateList
    default_emblem = theme.load_icon (def_emblem, w/2, 0)
glib.GError: Icon 'emblem-default' not present in theme


anything else to test?
Comment 5 Bernhard Wiedemann 2009-11-14 05:49:30 UTC
I just did a fresh 11.2-KDE4 install and above problems occur there, too.
firefox, seamonkey, gimp and evince only offer print-to-file.

other apps that work: gwenview, konqueror, openoffice - so everything that has another print dialog
Comment 6 Bernhard Wiedemann 2009-11-20 18:07:15 UTC
Finally did another install from 11.2-Gnome LiveCD and there system-config-printer shows my printer, but firefox still does not.

I found out, that firefox starts working when I put into /etc/cups/client.conf
ServerName 192.168.11.92
instead of
ServerName flash.zq1.de

The difference is that flash.zq1.de does have an AAAA record, but cups only listens on IPv4 there. The hostname also worked after reconfiguring cupsd on flash.zq1.de to listen on :::631 
So that is pretty definitely the cause of this bug.

===

workaround: use IPv4-addr in /etc/cups/client.conf
workaround: have cupsd listen on IPv6
Comment 7 Bernhard Wiedemann 2009-11-21 06:28:00 UTC
verified that the problem also exists in openSUSE-11.1 (and thus probably SLED11)
but not in 11.0

How to reproduce:
echo 192.168.11.92 printserver >> /etc/hosts
echo 2001:6f8:11fc:10:240:f4ff:fe68:2e5 printserver >> /etc/hosts
echo ServerName printserver > /etc/cups/client.conf

and on printserver have
/etc/cups/cupsd.conf:Listen 0.0.0.0:631
Comment 8 Bernhard Wiedemann 2009-12-03 12:35:07 UTC
filed upstream at https://bugzilla.gnome.org/show_bug.cgi?id=603637

the independent system-config-printer problem from comment #4 is tracked in bug 555569
Comment 9 Bernhard Wiedemann 2010-02-11 19:54:56 UTC
http://blogs.gnome.org/alexl/2006/04/21/gtk-printing-support/ says
"The actual printing is done through Cairo" - so maybe someone should report there instead of gnome/gtk?
there? http://bugs.freedesktop.org/
Comment 10 Bernhard Wiedemann 2010-05-26 14:08:41 UTC
There is now a proposed patch for gtk+ 
at http://bugzilla-attachments.gnome.org/attachment.cgi?id=162019

This bug is also present in current Factory (tested on 11.3-MS6)
Comment 11 Dominique Leuenberger 2012-07-31 20:12:48 UTC
Sorry, this bug did not get the attention it deserved.

Not likely, you have already upgraded to newer versions of openSUSE, which had
a lot more bug fixes.

As openSUSE 11.2 is no longer maintained (for a long time already) and I can't
seem to reproduce anything similar in openSUSE 12.1 / 12.2 RC, I close the bug
as 'FIXED'.

Should you be able to reproduce this issue on a newer openSUSE version, please
feel to report it again.