Last modified: 2010-05-15 15:51:58 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 T12016, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10016 - Invalid sysop account password throws uncaught exception in installer
Invalid sysop account password throws uncaught exception in installer
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
: 10556 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2007-05-23 13:07 UTC by Alexandre
Modified: 2010-05-15 15:51 UTC (History)
3 users (show)

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


Description Alexandre 2007-05-23 13:07:22 UTC

During the installation process, in the configuration form 'http://[myWiki]/config/index.php', if we put the same value for the login and the password of the administrator account (eg:  Login : 'Admin' and password : 'Admin'), the installation fails without showing the message 'Your password is invalid or too short. It must have at least 0 characters and be different from your username.'

In fact MediaWiki throw an Exception which is apparently not catched and displayed. I think this message should be displayed in order to found out what was wrong with the values that I put in the config form. 

In the script 'config/index.php' I catched and displayed the Exception in order to find out what was the issue:

if( $conf->SysopName ) {
   $u = User::newFromName( $conf->getSysopName() );
   if ( !$u ) {
      print "<li><strong class=\"error\">Warning:</strong> Skipped sysop account creation - invalid username!</li>\n";
   else if ( 0 == $u->idForName() ) {

         $u->setPassword( $conf->getSysopPass() );

         $u->addGroup( "sysop" );
         $u->addGroup( "bureaucrat" );

         print "<li>Created sysop account <tt>" .htmlspecialchars( $conf->SysopName ) . "</tt>.</li>\n";

      }catch(Exception $oException){
         die('Exception: '.$oException->getMessage());


      } else {
            print "<li>Could not create user - already exists!</li>\n";
      } else {
            print "<li>Skipped sysop account creation, no name given.</li>\n";


Thank you. 

Comment 1 Brion Vibber 2007-05-23 18:57:59 UTC
Clarifying summary text.
Comment 2 Bruno Braga 2007-05-27 17:42:02 UTC
It is well clearly. I also had the same problem.

It is not possible to install wiki with user: admin, pass: admin, and DOES NOT SHOW ERROR.

I only understood the problem in one debug manual.

This is a Blocker error.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-27 18:13:01 UTC
Does not block development, or in fact anything.  Confusing, but there's a simple fix.  Adjusting severity/priority.

See also bug 9993.
Comment 4 Bruno Braga 2007-05-28 12:50:48 UTC
block use of mediawiki hehe.. =)

yes, is a simple fix, but I think that it has reason in severity. However I think  this is priority :P
Comment 5 Rob Church 2007-06-06 02:58:02 UTC
This was fixed in r22759; the administrator's username and password are now validated before the installer starts making changes.
Comment 6 Brion Vibber 2007-07-12 18:52:46 UTC
*** Bug 10556 has been marked as a duplicate of this bug. ***

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