Opened on 02/22/2016 at 07:41:57 PM
Last modified on 10/08/2019 at 05:45:42 PM
#3680 new defect
[codereview] "Invalid IPv6 URL [ValueError]" when publishing comments
Reported by: | trev | Assignee: | |
---|---|---|---|
Priority: | Unknown | Milestone: | |
Module: | Infrastructure | Keywords: | |
Cc: | matze | Blocked By: | |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
How to reproduce
- Add a comment on this line.
- Attempt to publish comments.
Observed behaviour
Error "Invalid IPv6 URL [ValueError]" shows up on https://codereview.adblockplus.org/29336684/publish.
Expected behaviour
No error, usual list of comments.
Background
This is a bug in django.utils.html.urlize, it attempts to highlight hgbook)}}](http://hgbook.red-bean.com as a URL and fails (urlparse.unsplit() throws the exception above). I hotfixed this on the server for now by adjusting the regular expression, Django's official patch however simply catches the exception. Unfortunately, Django's patch won't apply cleanly to Django 1.4 used by Rietveld.
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Upstream issue: https://github.com/rietveld-codereview/rietveld/issues/541