Home ›
Minor race condition in Drupal: If you create admin account through regular screen then finish wizard, it breaksMinor race condition in Drupal: If you create admin account through regular screen then finish wizard, it breaks
Submitted by Benjamin Melançon on March 20, 2009 - 1:20pm
Discovered a race condition type bug in Drupal... if you register another account while the superuser account screen has not been submitted yet, and you use the same username and password for both screens,
things break when you submit the final page of the site setup process, and you can't login as the superuser.
Only as the other user you made.
Which has no powers.
This can be fixed by changing uid 1 from its placeholder values to the username and e-mail address you want, and changing the status from disabled (0) to enabled (1).
But @TODO protect against this happening for people like me who can get distracted from their set-up screens.
Resolution
More like this
- E-mails being sent or nodes being saved by batch api breaking on a regular schedule just during cron runs
- Created a View through the wizard... page not found going to its path
- Turning on Drupal performance caching (to see if overzelous regular caching will take a break)
- How to break Drupal's system_settings_form submit handling without trying
- Validation error on search form, contact site admin. But I am the site admin!


Comments
Post new comment