I've been having problems importing and / or synching Gallery2 users with Drupal. The errors are due to either the Gallery2 user names containing spaces or illegal characters - or duplicate email addresses.
I fixed the errors but it took a long time relying on trial and error and numerous fragmented error reports from Drupal after each abortive import/synch attempt.
Gallery2 seems to tolerate these entries while Drupal 5.x (maybe also 4.x and 6.x) does not. It would be great if someone could conjure up a script that would go through the gallery2 database and remove spaces / illegal characters and give a report as to what was fixed. Maybe someone's already done this? I've searched the forums and googled a fair bit - but nothing so far.
Posts: 31
As fare as I can remember Drupal allow spaces in "user names" but uid can not start with a space or have multiple spaces after ea. You are right Drupal does not support multiple users having the same email address Gallery2 should also not allow this, it really don't make any sense. I'm not sure if Gallery 2.3 have changed this?
Take a look in:
http://api.drupal.org/api/function/user_validate_name/5
Drupal 5 and 6 look the same as far as I can see. I know I'm not directly answering your request....
--
Steinmb