Last modified: 2014-01-17 22:34:19 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 T61638, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59638 - Flow: SQL error if anon user makes first header edit
Flow: SQL error if anon user makes first header edit
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!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-04 06:43 UTC by spage
Modified: 2014-01-17 22:34 UTC (History)
4 users (show)

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


Attachments

Description spage 2014-01-04 06:43:18 UTC
Logout, then find a Flow page with at least one topic (otherwise you'll trigger a different bug 59637). On ee-flow, find an empty User_talk page, add a topic, then reload it.

Now click the pencil icon next to the default "This talk page currently has no header" header, add some header text, and click [Save header]. The page displays
an errorbox with
  An error occurred.
  The error message received was: Exception Caught: failed insert

and $wgDebugLogFile contains

HTTP: POST: http://localhost:8000/localhost/User_talk:4pq1injbak
DatabaseBase::query: Writes done: INSERT  INTO `flow_revision` (rev_id,rev_user_id,rev_user_ip,rev_parent_id,rev_change_type,rev_type,rev_content,rev_flags,rev_mod_state,rev_mod_user_id,rev_mod_user_ip,rev_mod_timestamp,rev_mod_reason,rev_last_edit_id,rev_edit_user_id,rev_edit_user_ip) VALUES (' \roÔlãð ȱú >hĬ','0',NULL,NULL,'create-header','header','<p data-parsoid=\'{\"dsr\":[0,34,0,0]}\'>Anonymous user editing the header.</p>','utf-8,html','',NULL,NULL,NULL,NULL,NULL,NULL,NULL)
MessageCache::load: Loading en... got from global cache
SQL ERROR: Column 'rc_user_text' cannot be null (localhost)
[exception] [94f15f7e] /w/api.php   Exception from line 498 of /srv/mediawiki/extensions/Flow/includes/Data/ObjectManager.php: failed insert
#0 /srv/mediawiki/extensions/Flow/includes/Data/ObjectManager.php(470): Flow\Data\ObjectManager->insert(Object(Flow\Model\Header))
#1 /srv/mediawiki/extensions/Flow/includes/Data/ObjectManager.php(167): Flow\Data\ObjectManager->put(Object(Flow\Model\Header))
#2 /srv/mediawiki/extensions/Flow/includes/Block/Header.php(113): Flow\Data\ManagerGroup->put(Object(Flow\Model\Header))
#3 /srv/mediawiki/extensions/Flow/includes/WorkflowLoader.php(206): Flow\Block\HeaderBlock->commit()
#4 /srv/mediawiki/extensions/Flow/includes/api/ApiFlow.php(59): Flow\WorkflowLoader->commit(Object(Flow\Model\Workflow), Array)
#5 /srv/mediawiki/includes/api/ApiMain.php(862): ApiFlow->execute()
#6 /srv/mediawiki/includes/api/ApiMain.php(387): ApiMain->executeAction()
#7 /srv/mediawiki/includes/api/ApiMain.php(358): ApiMain->executeActionWithErrorHandling()
#8 /srv/mediawiki/api.php(76): ApiMain->execute()
#9 {main} 
ApiMain::setCacheMode: setting cache mode private
Comment 1 Bingle 2014-01-04 06:54:33 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/686, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Gerrit Notification Bot 2014-01-16 01:35:18 UTC
Change 107757 had a related patch set uploaded by Bsitu:
Anon users creating new header results in SQL error

https://gerrit.wikimedia.org/r/107757
Comment 3 Gerrit Notification Bot 2014-01-17 13:28:23 UTC
Change 107757 merged by jenkins-bot:
Anon users creating new header results in SQL error

https://gerrit.wikimedia.org/r/107757
Comment 4 Erik Bernhardson 2014-01-17 22:34:19 UTC
fix merged, will deploy with the jan 30 train

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


Navigation
Links