After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 451070 - Broken CUPS SSL printing in gtk 2.10.13
Broken CUPS SSL printing in gtk 2.10.13
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-06-25 22:21 UTC by Vince Busam
Modified: 2018-04-15 00:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simpe fix (1.10 KB, patch)
2007-06-25 22:22 UTC, Vince Busam
none Details | Review
Re-set state when encrypted connection required (719 bytes, patch)
2007-06-27 19:48 UTC, Vince Busam
none Details | Review
Working patch (4.51 KB, patch)
2007-06-28 23:28 UTC, Vince Busam
none Details | Review
(better) working patch (8.04 KB, patch)
2007-07-06 22:54 UTC, Vince Busam
none Details | Review
Even better patch (6.53 KB, patch)
2007-07-09 21:10 UTC, Vince Busam
none Details | Review
Keep shared http connection on reconnect (2.04 KB, patch)
2007-07-10 18:32 UTC, Vince Busam
none Details | Review
All patches in one, against gtk+ 2.0.13 (7.92 KB, patch)
2007-07-10 18:39 UTC, Vince Busam
none Details | Review

Description Vince Busam 2007-06-25 22:21:11 UTC
Please describe the problem:
When using a cups printserver requiring SSL, the client does not properly upgrade the connection to SSL when requested by the server, and will continuously re-query, only to be rejected by the server for not using SSL.

Steps to reproduce:
Set your printserver in /etc/cups/client.conf to a cups print server requiring SSL.

Actual results:
No printers show up in dialog

Expected results:
Printers show up in dialog

Does this happen every time?
Yes

Other information:
Comment 1 Vince Busam 2007-06-25 22:22:42 UTC
Created attachment 90640 [details] [review]
Simpe fix

This patch removes the #ifdef HAVE_SSL lines, and the mention of an unfinished TODO of enabling them from the configure script.
Comment 2 Vince Busam 2007-06-27 19:48:35 UTC
Created attachment 90778 [details] [review]
Re-set state when encrypted connection required

Another patch I need to connect properly and get a list of available printers.
Comment 3 Matthias Clasen 2007-06-27 20:54:12 UTC
hmm, seems the second patch has the #ifdef HAVE_SSL lines in context that the first one is removing ? 

Comment 4 Vince Busam 2007-06-27 20:57:54 UTC
Whoops, those shouldn't be there.
Comment 5 Vince Busam 2007-06-28 23:28:40 UTC
Created attachment 90842 [details] [review]
Working patch

Latest patch which works better for me, but is still quite slow.  It runs into the hard-coded 10 second waits in libcups quite frequently.

It's also amazingly ugly, and there's got to be a better way to do it.
Comment 6 Matthias Clasen 2007-06-29 18:32:52 UTC
> It's also amazingly ugly, and there's got to be a better way to do it.

Yeah, I don't think this is the way to go. If we want to do connection sharing
like this, it should probably be done in the backend.

I'd like to treat that separately from your first two patches which were only about making SSL work at all.
Comment 7 Matthias Clasen 2007-06-29 18:56:43 UTC
I've committed the first two changes now.
Comment 8 Vince Busam 2007-07-06 22:54:44 UTC
Created attachment 91328 [details] [review]
(better) working patch

This patch works perfectly for me.  I wasn't sure if it was OK to use the gtk mutex API, should I switch to that?  Any other changes I should add to make it acceptable for upstream?
Comment 9 Vince Busam 2007-07-09 21:10:10 UTC
Created attachment 91517 [details] [review]
Even better patch

This just cleans up the last patch a bit.
Comment 10 Vince Busam 2007-07-10 18:32:12 UTC
Created attachment 91562 [details] [review]
Keep shared http connection on reconnect

I haven't had this problem yet, but on code inspection, a failure on one http connection would kill other requests sharing the same connection.
Comment 11 Vince Busam 2007-07-10 18:39:04 UTC
Created attachment 91564 [details] [review]
All patches in one, against gtk+ 2.0.13
Comment 12 Timothy Arceri 2013-10-02 11:47:22 UTC
Hi Vince? Is any of this still valid? Or is it working in newer GTK?
Comment 13 Matthias Clasen 2018-02-10 05:09:37 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 14 Matthias Clasen 2018-04-15 00:35:37 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new