Last modified: 2014-07-21 19:02:38 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 T32524, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30524 - Cannot install mediawiki when database admin user password ends with spaces
Cannot install mediawiki when database admin user password ends with spaces
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-23 01:19 UTC by Luiz Angelo Daros de Luca
Modified: 2014-07-21 19:02 UTC (History)
2 users (show)

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


Attachments

Description Luiz Angelo Daros de Luca 2011-08-23 01:19:18 UTC
Hello,
 
Mediawiki fails to install when my mysql root password is something like "12345678  " (sequence of 1 to 8 and two spaces). It might be some trim over the password input.

If I change the password to something without spaces, it just works.

Please, remove this restriction.
Comment 1 Brion Vibber 2011-08-23 17:38:27 UTC
Looks like there's a trim() in WebInstaller::setVarsFromRequest which is the likely culprit.

It does have some special handling for fields with 'password' in the name (I think to obfuscate them in the session data?), so perhaps we could move the trim() down to the non-password handling.
Comment 2 Andre Klapper 2013-01-09 13:34:19 UTC
Brian:
This report has been in ASSIGNED status for more than one year and you are set as its assignee. In case that you are not actively working on a fix, please reset the bug status to NEW/UNCONFIRMED.
In case you do not plan to work on a fix in the near future: Please also edit the "Assigned To" field by clicking "Reset Assignee to default", in order to not prevent potential contributors from working on a fix. Thanks for your help!
[assigned>=1y]
Comment 3 Andre Klapper 2013-01-09 13:34:49 UTC
Brion:
This report has been in ASSIGNED status for more than one year and you are set as its assignee. In case that you are not actively working on a fix, please reset the bug status to NEW/UNCONFIRMED.
In case you do not plan to work on a fix in the near future: Please also edit the "Assigned To" field by clicking "Reset Assignee to default", in order to not prevent potential contributors from working on a fix. Thanks for your help!
[assigned>=1y]
Comment 4 Andre Klapper 2013-05-03 16:46:17 UTC
In the mysql shell, run
  SET PASSWORD for 'user'@'localhost' = PASSWORD('whatever ');

Entering that in the installer, it says
"DB connection error: Access denied"
Scrolling down, the "Database password" is one char shorter (my last char was a whitespace).

After running
  SET PASSWORD for 'user'@'locahost' = PASSWORD('whatever');
the installer works.

So this is still an issue in 1.22 git master of today.
Comment 5 Gerrit Notification Bot 2014-07-12 22:16:34 UTC
Change 145859 had a related patch set uploaded by Taueres:
WebInstaller::setVarsFromRequest() do not trim passwords

https://gerrit.wikimedia.org/r/145859
Comment 6 Gerrit Notification Bot 2014-07-21 18:24:39 UTC
Change 145859 merged by jenkins-bot:
WebInstaller::setVarsFromRequest() do not trim passwords

https://gerrit.wikimedia.org/r/145859

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


Navigation
Links