Last modified: 2010-05-15 15:51:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10016 - Invalid sysop account password throws uncaught exception in installer
Invalid sysop account password throws uncaught exception in installer
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.10.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
: 10556 (view as bug list)
Depends on:
Blocks:
  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: ---


Attachments

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

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() ) {

      try{
         $u->addToDatabase();
         $u->setPassword( $conf->getSysopPass() );
         $u->saveSettings();

         $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. 

Alex
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.


Navigation
Links