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 515088 - GMime does not parse IPv6 addresses in URLs (RFC 2732)
GMime does not parse IPv6 addresses in URLs (RFC 2732)
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
2.2.x
Other All
: Normal normal
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2008-02-07 21:53 UTC by Derek Morr
Modified: 2008-02-08 04:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Derek Morr 2008-02-07 21:53:47 UTC
Please describe the problem:
GMimeFilterHTML, when used with the GMIME_FILTER_HTML_CONVERT_URLS flag, does not convert URLs with literal IPv6 addresses into hyperlinks. For example:

http://[2610:8:6800:1::7]/

This syntax is valid according to RFC 2732.

Steps to reproduce:
I wrote a test program that creates a GMimeFilterHTML with the GMIME_FILTER_HTML_CONVERT_URLS flag. I have that read in an text/plain email message which contains two URLs:

http://128.118.27.7/
and
http://[2610:8:6800:1::7]/

Actual results:
The first URL is converted into a hyperlink:
<a href="http://128.118.27.7/">http://128.118.27.7/</a>

The second URL is not.

Expected results:
Both URLs should be converted into hyperlinks. E.g.:

<a href="http://[2610:8:6800:1::7]/">http://[2610:8:6800:1::7]/</a>

Does this happen every time?
Yes

Other information:
This was tested with GMime 2.2.16.
Comment 1 Jeffrey Stedfast 2008-02-08 04:52:07 UTC
fixed in svn, revision 1218