Page MenuHomePhabricator

Flow: Create/preview of first topic on talkpage fails
Closed, ResolvedPublic

Description

When I created user super'fantastic in the Chromium browser, I went immediately to my usertalk page, to create a test post. When trying to submit that post, I got this message:
"Exception Caught: Title "User_talk:Super'fantastic" does not exist."
(See screenshot)

I then reloaded the page by clicking the "Discussion" tab, and thereafter it worked properly.


Version: unspecified
Severity: normal

Details

Reference
bz58018

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:19 AM
bzimport set Reference to bz58018.
bzimport added a subscriber: Unknown Object (MLST).

Later on, I tried with a new account "sohungry" in Opera (with javascript turned off), and got this message:

[a5ca4c8d] /w/index.php?title=User_talk:Sohungry&definition=0503ac33637abba2f8a9fa163e68c4ac&action=new-topic Exception from line 44 of /srv/mediawiki/extensions/Flow/includes/ParsoidUtils.php: Title "User_talk:Sohungry" does not exist.

Backtrace:

#0 /srv/mediawiki/extensions/Flow/includes/Model/AbstractRevision.php(349): Flow\ParsoidUtils::convert(string, string, string)
#1 /srv/mediawiki/extensions/Flow/includes/Model/PostRevision.php(87): Flow\Model\AbstractRevision->setContent(string)
#2 /srv/mediawiki/extensions/Flow/includes/Block/TopicList.php(72): Flow\Model\PostRevision->reply(User, string)
#3 /srv/mediawiki/extensions/Flow/includes/WorkflowLoader.php(201): Flow\Block\TopicListBlock->commit()
#4 /srv/mediawiki/extensions/Flow/includes/View.php(54): Flow\WorkflowLoader->commit(Flow\Model\Workflow, array)
#5 /srv/mediawiki/extensions/Flow/Hooks.php(147): Flow\View->show(Flow\WorkflowLoader, string)
#6 [internal function]: FlowHooks::onPerformAction(OutputPage, Article, Title, User, WebRequest, MediaWiki)
#7 /srv/mediawiki/includes/Hooks.php(199): call_user_func_array(string, array)
#8 /srv/mediawiki/includes/GlobalFunctions.php(4063): Hooks::run(string, array)
#9 /srv/mediawiki/includes/Wiki.php(423): wfRunHooks(string, array)
#10 /srv/mediawiki/includes/Wiki.php(305): MediaWiki->performAction(Article, Title)
#11 /srv/mediawiki/includes/Wiki.php(596): MediaWiki->performRequest()
#12 /srv/mediawiki/includes/Wiki.php(460): MediaWiki->main()
#13 /srv/mediawiki/index.php(49): MediaWiki->run()
#14 {main}

and now I can't see anything at that page: http://ee-flow.wmflabs.org/wiki/User_talk:Sohungry

Created attachment 13988
screenshot of 1st problem

Attached:

Screenshot_from_2013-12-04_16:01:03.png (776×1 px, 100 KB)

bingle-admin wrote:

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/588, but people from the community are welcome to contribute here and in Gerrit.

Change 99321 had a related patch set uploaded by EBernhardson:
Creating topic on empty flow page fails

https://gerrit.wikimedia.org/r/99321

Change 99321 merged by jenkins-bot:
Creating topic on empty flow page fails

https://gerrit.wikimedia.org/r/99321

This is still a problem on preview of first post on a Flow-enabled page. On my local wiki I went to my User_talk page (a year after the account was created, so I updated this bug's summary) and tried to add the first topic, and got 'Exception Caught: Title "User_talk:S_Page" does not exist.' on preview.

This could be my screwed-up local config, but ErikB commented
"my fix wouldn't have helped for preview, only for doing a real save.
I suppose we have to support preview, i just dont like the idea of creating wiki pages behind the scenes before anything is saved"

Just tried it on ee-flow (on Kaity's board: http://ee-flow.wmflabs.org/w/index.php?title=User_talk:Kaitymh) and it seems to work fine.