https://bugzilla.wikimedia.org/show_bug.cgi?id=64102
Bug ID: 64102
Summary: Flow: action=history triggers parsoid parsing of
wikitext posts
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Flow
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Web browser: ---
Mobile Platform: ---
I manually start parsoid with `node api/server.js`. On my local wiki,
?action=history produces lots of "starting/stopping parsing of
localhost:SomePage" messages, but only for posts that were stored as wikitext.
The stack trace in the call to parsoid() is below.
Flow\Formatter\BoardHistory->formatHtml() calls
Flow\Formatter\RevisionFormatter->formatApi() which retrieves the revision
content as HTML, thus triggering wikitext conversion to HTML. But BoardHistory
never uses the 'content' element of the array, nor I think do other formatters,
maybe we can drop it? (Some formatters invoke processParam( 'summary' ) which
explicitly gets the content and has a a comment about the conversion.)
#0 Flow\Parsoid\Utils::parsoid() called at
[/home/spage/projects/core/extensions/Flow/includes/Parsoid/Utils.php:30]
#1 Flow\Parsoid\Utils::convert() called at
[/home/spage/projects/core/extensions/Flow/includes/Model/AbstractRevision.php:424]
#2 Flow\Model\AbstractRevision->getContent() called at
[/home/spage/projects/core/extensions/Flow/includes/Templating.php:451]
#3 Flow\Templating->getContent() called at
[/home/spage/projects/core/extensions/Flow/includes/Formatter/RevisionFormatter.php:86]
#4 Flow\Formatter\RevisionFormatter->formatApi() called at
[/home/spage/projects/core/extensions/Flow/includes/Formatter/BoardHistory.php:34]
#5 Flow\Formatter\BoardHistory->formatHtml() called at
[/home/spage/projects/core/extensions/Flow/includes/Formatter/BoardHistory.php:26]
#6 Flow\Formatter\BoardHistory->format() called at
[/home/spage/projects/core/extensions/Flow/includes/Block/BoardHistory.php:59]
#7 Flow\Block\BoardHistoryBlock->render() called at
[/home/spage/projects/core/extensions/Flow/includes/Block/Block.php:151]
#8 Flow\Block\AbstractBlock->onRender() called at
[/home/spage/projects/core/extensions/Flow/includes/View.php:80]
#9 Flow\View->show() called at
[/home/spage/projects/core/extensions/Flow/Hooks.php:290]
#10 FlowHooks::onPerformAction()
#11 call_user_func_array() called at
[/home/spage/projects/core/includes/Hooks.php:206]
#12 Hooks::run() called at
[/home/spage/projects/core/includes/GlobalFunctions.php:4011]
#13 wfRunHooks() called at [/home/spage/projects/core/includes/Wiki.php:410]
#14 MediaWiki->performAction() called at
[/home/spage/projects/core/includes/Wiki.php:292]
#15 MediaWiki->performRequest() called at
[/home/spage/projects/core/includes/Wiki.php:588]
#16 MediaWiki->main() called at
[/home/spage/projects/core/includes/Wiki.php:447]
#17 MediaWiki->run() called at [/home/spage/projects/core/index.php:49]
--
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