Click the v gadget on a Flow board post and choose Post history, and you're taken to, e.g.
The "subpage" is the page of the Flow board (Sandbox in the example), and the workflow and the topic[postId] are the same UUID. If I change to another, existing page like Main_Page, I get
Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message 'title' in /srv/mediawiki/extensions/Flow/includes/Model/Workflow.php:139
Stack trace:
#0 /srv/mediawiki/extensions/Flow/includes/WorkflowLoader.php(91): Flow\Model\Workflow->matchesTitle(Object(Title))
#1 /srv/mediawiki/extensions/Flow/includes/WorkflowLoader.php(43): Flow\WorkflowLoader->loadWorkflowById(Object(Title), Object(Flow\Model\UUID))
...
I thought you could display a post's history independent of its workflow, but if I remove &workflow=xxxxx, I get the exception:
Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message 'No postId provided' in /srv/mediawiki/extensions/Flow/includes/Block/Topic.php:306
Stack trace:
#0 /srv/mediawiki/extensions/Flow/includes/Block/Topic.php(264): Flow\Block\TopicBlock->renderPostHistory(Object(Flow\Templating), Array, true)
#1 /srv/mediawiki/extensions/Flow/templates/topiclist.html.php(45): Flow\Block\TopicBlock->render(Object(Flow\Templating), Array, true)
But I did provide a postId, so the exception is misleading. It seems post-history needs both a workflow and a topic[postId], even though they're the same. I tried to figure out how this should work by reading URLS and INITIAL_WORKFLOWS and got confused.
Version: master
Severity: minor