https://bugzilla.wikimedia.org/show_bug.cgi?id=49254

Chris <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Chris <[email protected]> ---
Problem seems to be solved. I added some traces in the Database.php and
DatabaseSqlite.php and noticed, that the DatabaseSqlite::openFile() was called
twice in the transaction. After some code reading I found this section in the
Database::__construct:

  if ( $user ) {
      $this->open( $server, $user, $password, $dbName );
  }

I also found the counterpart in the DatabaseSqlite::__construct
  function __construct( $server = false, $user = false, $password = false,
$dbName = false, $flags = 0 ) {
    $this->mName = $dbName;
    parent::__construct( $server, $user, $password, $dbName, $flags );
    // parent doesn't open when $user is false, but we can work with $dbName
    if( $dbName ) {
      global $wgSharedDB;
      if( $this->open( $server, $user, $password, $dbName ) && $wgSharedDB ) {

While checking the LocalSettings.php I noticed that the $wgDBuser has a user
defined. After removing this, everything seems to work.

Well I checked again the settings in the 1.20.6 test setup (which was running
after the upgrade) and here the$ wgDBuser was also defined

When comparing the code 1.20.6 to 1.21.1, the only difference is the PRAGMA
setting in the constructor of the DatabaseSqlite:
  $this->query( 'PRAGMA case_sensitive_like = 1' );

Summary: When you do not specify a user in wgDBuser, then everything is working
fine. 

Might be a good idea to check for it in the migration scripts...

CU,
Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to