PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 449 - Page load fails after sslErrors even if errors are handled
: Page load fails after sslErrors even if errors are handled
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtWebKit
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-01 11:20 EET by Perttu Ranta-aho
Modified: 2010-11-25 17:48 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Perttu Ranta-aho 2010-11-01 11:20:59 EET
Page load silently fails after sslErrors even though sslErrors are handled and
reply.ignoreSslErrors() is called. 

Code:

def on_ssl_errors(reply, errors):
    url = unicode(reply.url().toString())
    reply.ignoreSslErrors()
    print "SSL certificate error ignored: %s" % url

app = QtGui.QApplication(sys.argv)
webview = QtWebKit.QWebView()
page = webview.page()
page.networkAccessManager().sslErrors.connect(on_ssl_errors)
webview.load(QtCore.QUrl("https://www.uku.fi/"))
webview.show()
sys.exit(app.exec_())


Works as expected with PyQt4 but fails silently with PySide. With PySide the
on_ssl_errors() get's called and "SSL certificate error ignored:..." is printed
but finally the page is not loaded.

I'm using current HEAD on Ubuntu 10.04 and Python 2.6.5.
Comment 1 renato filho 2010-11-05 10:14:49 EET
fixed on shiboken commit:
commit a97ff930b29f6c4d51fdda0f448d172ceb83654e
Author: renatofilho <renato.filho@openbossa.org>
Date:   Thu Nov 4 17:37:48 2010 -0300
Comment 2 renato filho 2010-11-25 17:48:20 EET
released on 1.0.0~beta1