[Qt-interest] QtWebKit and IPv6

Constantin Makshin cmakshin at gmail.com
Tue May 24 12:28:40 CEST 2011


Hi!

It seems that QtWebKit has some problems with IPv6 literal URLs (e.g. "http://[2001:4998:0:6::17]:80").
To check this, you need an IPv6 address and open "http://test-ipv6.com" in a QtWebKit-based browser like Arora or compile and run the attached example application — 6th test ("Test IPv6 without DNS" — "connecting with a literal IPv6 hexadecimal address") fails, and if you try to follow that test's link or open its URL ("http://[2001:4998:0:6::18]:80/ip/?callback=?") directly, you'll get a "400 Bad Request" server error message.

I've also attached two screenshots with Arora:
1) at "http://test-ipv6.com" results description page;
2) "400 Bad Request" error at "http://[2001:4998:0:6::18]:80/ip/?callback=?".

Doesn't anyone know whether this is an upstream WebKit or QtWebKit-specific bug? It's definitely not a QUrl's failure because QUrl treats literal IPv6 addresses as valid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipv6test.tar.gz
Type: application/x-compressed-tar
Size: 384 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/1020c33e/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arora-ipv6-test_1.png
Type: image/png
Size: 117735 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/1020c33e/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arora-ipv6-test_2.png
Type: image/png
Size: 31938 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/1020c33e/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/1020c33e/attachment-0001.bin 


More information about the Qt-interest-old mailing list