Closed
Bug 702290
Opened 14 years ago
Closed 6 years ago
Wiki parser generates invalid HTML when MEDIA_URL includes the host
Categories
(support.mozilla.org :: Knowledge Base Software, task, P5)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jsocol, Unassigned)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
920 bytes,
patch
|
Details | Diff | Splinter Review |
Setting MEDIA_URL to a full or protocol-relative URL, including the hostname, causes 3 tests in sumo.tests.test_parser to fail (at least for me). It's related to our image lazy-loading: the src attribute of the <img> inside the <noscript> gets turned into a link, meaning it looks like
<noscript><img src="<a href="//path/to/image">...</a>"></noscript>
Ricky can't reproduce it, which is further interesting. But it we want to push more content onto the CDN we will have to make sure this is just my VM and not a real problem.
Reporter | ||
Comment 1•14 years ago
|
||
So, we narrowed this down further (details in regex):
MEDIA_URL = '(https?:)?//' +
'localhost(:8000)?' -> works
'localhost.localdomain(:8000)?' -> works
'example.com(:8000)?' -> FAILS
+ '/media/'
That leads me to suspect it's from pywikimarkup's naive URL linkification.
Summary: Wiki parser may generate invalid HTML when MEDIA_URL includes the host → Wiki parser generates invalid HTML when MEDIA_URL includes the host
Reporter | ||
Comment 2•14 years ago
|
||
Here's a patch that demos a failing test because of this bug.
Comment 4•8 years ago
|
||
hey we have a reproducible failing test, sounds like something for good first bug
Keywords: good-first-bug
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•