$ drush @drupal.d7 genu --roles=medewerker 10
WD user: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'medewerker' for column 'rid' at row 1: INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array                                                                                                                          [error]
(
    [:db_insert_placeholder_0] => 4
    [:db_insert_placeholder_1] => medewerker
)
 in user_save() (line 603 of /Users/clemens/Sites/drupal/d7/www/modules/user/user.module).

We can validate these as invalid or check the string value against rol names.

CommentFileSizeAuthor
#1 devel-2145187-1.patch1.2 KBclemens.tolboom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

clemens.tolboom’s picture

Status: Active » Needs review
FileSize
1.2 KB

Attached patch checks for both valid role ID as role Name

willzyx’s picture

Status: Needs review » Closed (won't fix)

Closing for lack of activity. Feel free to reopen if the issue still exists