Page MenuHomePhabricator

Pending Transactions fail to commit on error page
Closed, ResolvedPublic

Description

Author: scott

Description:
I used a hook to create a new user using the AutoAuthenticate hook, permission
to read the pages had been disabled for non logged in users within
LocalSettings.php. The new user was inserted into the database but the
information was never committed.

Tracked it down to the following code:
$output->loginToUse();
$output->output();
exit;

When this happens there is never a call to $mediaWiki->finalCleanup so there is
no commitAll() to the database.


Version: 1.8.x
Severity: normal
OS: Linux

Details

Reference
bz7830

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:23 PM
bzimport added a project: Wikimedia-Rdbms.
bzimport set Reference to bz7830.
bzimport added a subscriber: Unknown Object (MLST).
demon added a comment.Apr 10 2009, 2:27 PM

Fixed in r49369