Skip to content

Delete user #15

@marty-macfly

Description

@marty-macfly

Hello,

When I try to delete a user (which is using the openid plugin to authentificate) from the users administration page I've got the following error:

ActiveRecord::StatementInvalid (Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`redmine`.`oic_sessions`, CONSTRAINT `fk_rails_fb3c08edd2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)): DELETE FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`id` = 5):

I think cascade is missing so user entry for user in oic_sessions are removed when user is delete.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions