https://bugzilla.wikimedia.org/show_bug.cgi?id=24279
Summary: CodeReview's parsers sucks
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: CodeReview
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Both the parsers for commit messages and the code comments are broken in odd
ways.
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/16967#code-comments is a
fairly good example of two issues.
This query...
mysql> select cc_text from code_comment where cc_rev_id = 16967\G
*************************** 1. row ***************************
cc_text: The line "if($vCode==$wgContLang->getCode()) continue; // we don't
want default variant" doesn't work correctly on zhwiki (and other wikis with
$wgLanguageCode = 'zh'), where the language code 'zh' is also used as a variant
name (which means 'no conversion'; technically it's a variant). Omitting zh
variant causes /zh/Page_Name urls (when $wgArticlePath = '/$2/$1') not to be
purged.
*************************** 2. row ***************************
cc_text: Filed to bugzilla as [[bugzilla:24027|bug 24027]].
*************************** 3. row ***************************
cc_text: <nowiki>bug 24027</nowiki> will link to bugzilla :)
3 rows in set (0.02 sec)
... shows the raw text. The parser doesn't listen to <nowiki> and it doesn't
properly expand interwiki links like "bugzilla:".
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/67090 demonstrates a
problem with the commit message parser. The raw text is "The reason for this
change is given in
<http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html>."
However the trailing ">" is turned into > inexplicably.
Some parser tests (or a change in the overall implementation of CodeReview's
message parsing) would be good.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l