https://bugzilla.wikimedia.org/show_bug.cgi?id=54622

       Web browser: ---
            Bug ID: 54622
           Summary: exceptions from edited Flow URLs
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Flow
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Click the v gadget on a Flow board post and choose Post history, and you're
taken to, e.g.

http://ee-flow.wmflabs.org/w/index.php?title=Special:Flow/Sandbox&topic[postId]=05055efbee7cb62ef835fa163e68c4ac&workflow=05055eed28a8b62ef835fa163e68c4ac&action=post-history

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.

-- 
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

Reply via email to