Last modified: 2014-01-03 01:41:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61198, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59198 - Flow: garbled phantom topic participants on ee-flow
Flow: garbled phantom topic participants on ee-flow
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ee-flow.wmflabs.org/w/index.ph...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-02 01:49 UTC by spage
Modified: 2014-01-03 01:41 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
weird topic box rendering from missing username (127.32 KB, image/png)
2014-01-02 01:49 UTC, spage
Details

Description spage 2014-01-02 01:49:05 UTC
Created attachment 14209 [details]
weird topic box rendering from missing username

A lot of topics and posts on ee-flow had missing usernames. Then I ran update.php which applied workflow_user_ip field update, and I think things worked better. However, one topic still looks weird, screenshot attached. Note there's a blank username, and somehow in the topic box the flow-topic-participants "<blank> and Gry" turned into 
  <pre>and Gry
  </pre>	

Maybe the bad HTML isn't re-rendered. Unfortunately when I tried to add a new post to make Flow change it to "(anon, Gry, and spage)" I triggered bug 59197, so you can't see this topic any more.

Even if this is just a transient issue, maybe code somewhere could be more robust.
Comment 1 Bingle 2014-01-02 01:54:29 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/670, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 spage 2014-01-02 02:33:57 UTC
http://ee-flow.wmflabs.org/w/index.php?title=Talk:Sandbox&workflow=050b9efcf0e3f00fc8b1fa163e68c4ac is another topic with a phantom (anonymous?) user, though it doesn't have the weird <pre> tag in the topic box.
Comment 3 Gerrit Notification Bot 2014-01-02 12:27:14 UTC
Change 104930 had a related patch set uploaded by Matthias Mullie:
Automatically run FlowSetUserIp on update.php

https://gerrit.wikimedia.org/r/104930
Comment 4 Matthias Mullie 2014-01-02 12:27:29 UTC
There's a maintenance script: FlowSetUserIp.php, which will move all the ip data to the newly created columns.

This script was not automatically being run on update.php; I've submitted a patch to do so (https://gerrit.wikimedia.org/r/#/c/104930/).

For deployment, this is not a big issue, since update.php is not run. We'll have to make sure to manually run this maintenance script, though (and I've submitted another patch that fixes a minor bug in it: https://gerrit.wikimedia.org/r/#/c/104927/)
Comment 5 Gerrit Notification Bot 2014-01-02 18:25:50 UTC
Change 104930 merged by jenkins-bot:
Automatically run FlowSetUserIp on update.php

https://gerrit.wikimedia.org/r/104930
Comment 6 spage 2014-01-03 01:41:43 UTC
Running FlowSetUserIp did clear it up.

The pre tag is due to the flow-topic-participants going through parse(), and in wikitext leading blanks format text as a <pre> tag.  You can see this using eval.php:

echo wfMessage( 'flow-topic-participants', 2, 2, '', 'second person',
    'third person' )->parse();
prints

<pre>and second person
</pre>

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links