Page MenuHomePhabricator

internal_api_error_Flow\Exception\UnknownWorkflowIdException when click on 'Edit' topic
Closed, ResolvedPublic

Description

When looking into T63725: Flow: Interlanguage links are losing the :colon prefix when saved, I noticed that the link https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&topic_postId=rsg1m81vskkdywgk&workflow=rsftpxbkjdg745zu#flow-post-rsg1m81vskkdywgk displays the topic which title cannot be edited:

Screen Shot 2017-02-01 at 7.03.54 AM.png (437×884 px, 78 KB)

Note: the issue is not reproducible; at least I did not find the way to create the title with the same content - each link is on a new line.

  1. Go to the link: https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&topic_postId=rsg1m81vskkdywgk&workflow=rsftpxbkjdg745zu#flow-post-rsg1m81vskkdywgk
  2. Click on Edit topic - the error message will be displayed.
curl 'https://www.mediawiki.org/w/api.php?action=flow&format=json&submodule=view-post&uselang=en&page=Topic%3ARsg1m81vskkdywgk&vppostId=rsg1m81vskkdywgk&vpformat=wikitext' -H 'accept-encoding: gzip, deflate, sdch, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8,ru;q=0.6' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'referer: https://www.mediawiki.org/w/index.php?title=Topic:Rsftpxbkjdg745zu&topic_postId=rsg1m81vskkdywgk' -H 'authority: www.mediawiki.org' -H 'cookie: POTY2015R2=1; POTY2015R2-wait=0%7C0%7C1; CP=H2; GeoIP=US:CA:Campbell:37.28:-121.96:v4; mediawikiwikimwuser-sessionId=29b7d9a922e77acd; VEE=visualeditor; WMF-Last-Access=01-Feb-2017; mediawikiwikiSession=5fujpb4gcg3q3o9u8sd7pf023garhh42; mediawikiwikiUserID=3085333; mediawikiwikiUserName=Zilant17; forceHTTPS=true; centralauth_User=Zilant17; centralauth_Session=cb7ed910b168965675101529a5d5dba3; mediawikiwikiGeoFeaturesUser2=c6c49fe71c363061' --compressed

Response:

{"error":{"code":"internal_api_error_Flow\\Exception\\UnknownWorkflowIdException","info":"[WJI56wpAMD0AAKqNpWMAAADY] Exception caught: Invalid workflow requested by id"},"servedby":"mw1226"}

Event Timeline

I checked the history of https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&topic_postId=rsg1m81vskkdywgk&workflow=rsftpxbkjdg745zu#flow-post-rsg1m81vskkdywgk - the topic was created and edited in 2014 (April-Dec). Now, the markup usage in topic titles is limited only to links.

The links in the topic are in the form <p data-parsoid="{&quot;dsr&quot;:[59,68,0,0]}">test edit</p>

Although the issue is marked as resolved - the issue is still present. Even it's not possible now to create topics with corrupted titles, there might be old topics that have invalid titles. I was not able to locate such cases in db - maybe @Mattflaschen-WMF may take a look.