Bug 1439798

Summary: libsoup stuck on infinite loop for kerberized pages
Product: Red Hat Enterprise Linux 7 Reporter: Michal Odehnal <modehnal>
Component: libsoupAssignee: Tomas Popela <tpopela>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: tpelka, tpopela
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libsoup-2.56.0-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 19:32:29 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 Michal Odehnal 2017-04-06 14:34:14 UTC
Description of problem:
Unable to load https://tcms.engineering.redhat.com via webkitgtk4 

Version-Release number of selected component (if applicable):
webkitgtk4-2.14.5-5.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Start /usr/libexec/webkit2gtk-4.0/MiniBrowser https://tcms.engineering.redhat.com
2.
3.

Actual results:
Nothing is displayed

Expected results:
TCMS page correctly displayed

Additional info:

Comment 2 Michal Odehnal 2017-04-06 14:47:18 UTC
Console output upon opening:
/usr/libexec/webkit2gtk-4.0/WebKitWebProcess: symbol lookup error: /lib64/libwebkit2gtk-4.0.so.37: undefined symbol: gtk_widget_path_iter_set_object_name

Comment 3 Tomas Popela 2017-04-06 14:53:43 UTC
(In reply to Michal Odehnal from comment #2)
> Console output upon opening:
> /usr/libexec/webkit2gtk-4.0/WebKitWebProcess: symbol lookup error:
> /lib64/libwebkit2gtk-4.0.so.37: undefined symbol:
> gtk_widget_path_iter_set_object_name

You don't have gtk3 package from 7.4 installed. The error that I see is:

(process:17033): libsoup-WARNING **: SoupMessage 0x5628b94be940 stuck in infinite loop?

Comment 4 Michal Odehnal 2017-04-06 15:00:15 UTC
Console output upon opening in VM:
(process:7189): libsoup-WARNING **: gssapi step failed: Unspecified GSS failure.  Minor code may provide more information: SPNEGO cannot find mechanisms to negotiate

Comment 5 Tomas Popela 2017-04-06 15:15:00 UTC
Reproducible with get utility from libsoup:

./get -d -N -c ~/Documents/red_hat_ca_cert.crt https://tcms.engineering.redhat.com

I'm moving it to the right component (libsoup) before I will investigate it further.

Comment 6 Tomas Popela 2017-04-07 08:29:07 UTC
OK, so the tcms is sending the following response to the initial GET:

< HTTP/1.1 401 Authorization Required
< Soup-Debug-Timestamp: 1491552071
< Soup-Debug: SoupMessage 1 (0x2083bd0)
< Date: Fri, 07 Apr 2017 08:01:11 GMT
< Server: Apache/2.2.15 (Red Hat)
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Basic realm="TCMS - Kerberos login (if negotiate unavailable)"
< Last-Modified: Thu, 08 Dec 2016 08:15:51 GMT
< ETag: "9fb30-0-543213ee8e70f"
< Accept-Ranges: bytes
< Vary: Accept-Encoding
< Content-Encoding: gzip
< Content-Length: 20
< Connection: close
< Content-Type: text/plain; charset=UTF-8

The problem here is the request to close the connection. This is causing the connection to be closed and the authentication process to be restarted. For example the errata server specifies the connection to be kept alive, which I think is the right thing to do. But I need to confirm it the the kerberos guys.

Comment 10 errata-xmlrpc 2017-08-01 19:32:29 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://access.redhat.com/errata/RHEA-2017:2146