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 783542 - souphttpsrc: test_https unit test failure
souphttpsrc: test_https unit test failure
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 1.12.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-08 08:29 UTC by Edward Hervey
Modified: 2018-02-05 08:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Edward Hervey 2017-06-08 08:29:58 UTC
elements/souphttpsrc.c:244:F:general:test_https:0: Assertion 'run_test (TRUE, "/", 0)' failed


The reason seems to be the following:
0:00:00.125483546 30887      0x2445e30 WARN             souphttpsrc gstsouphttpsrc.c:1285:gst_soup_http_src_parse_status:<souphttpsrc0@0x244f4f0> error: Secure connection setup failed.
0:00:00.125495232 30887      0x2445e30 WARN             souphttpsrc gstsouphttpsrc.c:1285:gst_soup_http_src_parse_status:<souphttpsrc0@0x244f4f0> error: Unacceptable TLS certificate (6), URL: https://127.0.0.1:46469/, Redirect to: (NULL)
Comment 1 Edward Hervey 2017-06-08 08:30:10 UTC
Note: also happens with 1.12.0
Comment 2 Edward Hervey 2017-06-08 09:51:14 UTC
Issue seems to be with recent gnutls (3.5.x) . The certificates don't have a cipher supported by recent versions.
Comment 3 Edward Hervey 2017-11-10 09:20:11 UTC
Fixed by these commits :

commit aa8ac28d86a5c45314a6d62cfd579842f8aecad2
Author: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Date:   Tue Jun 20 16:39:36 2017 +0200

    tests: souphttpsrc: Avoid deprecated ssl-ca-file property
    
    SoupSession's ssl-ca-file property is deprecated. Use the recommended
    tls-database property.
    
    This is a bit more complex as it requires creating a GTlsFileDatabase
    object for an absolute (!) path to the CA certificates file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784005

commit 9922091f1b50bf6c48ffb25be4e3bccabcee209c
Author: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Date:   Tue Jun 20 16:37:55 2017 +0200

    tests: souphttpsrc: Avoid deprecated server ssl properties
    
    The ssl-cert-file and ssl-key-file properties are deprecated. Use the
    soup_server_set_ssl_cert_file function to load the files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784005

commit 27a0ea8cf54f580f2babb03ddadccb7ea7616f56
Author: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Date:   Tue Jun 20 16:34:41 2017 +0200

    tests: souphttpsrc: Make ssl_cert/key_file static
    
    Just a bit of cleanup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784005
Comment 4 David McInnis 2018-02-05 08:48:03 UTC
I also have this failure in Arch Linux.  I get the following in my test-suite.log file:

FAIL: elements/souphttpsrc
==========================

Running suite(s): souphttpsrc
92%: Checks: 14, Failures: 1, Errors: 0
elements/souphttpsrc.c:385:F:internet:test_icy_stream:0: Assertion 'caps != NULL' failed
FAIL elements/souphttpsrc (exit status: 1)



I have gnutls 3.5.17 installed.

-Dave