You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the error causing the failed email sending is fixed, the user cannot be invited as it is in deleted state in the database and email address needs to be unique.
Steps to reproduce
Mis-configure email server.
Invite a user.
Receive an error and the message that user was not created.
Fix the email server configuration.
Try to invite the user again.
Expected behavior
User should be invited.
Additional details
There are some fixes and issues for this already like #5658 and #6916, but those are somewhat counter-intuitive solutions for this. Possible fixes in my mind are either delete the created user completely if invite fails or reactive deleted user when inviting them.
The text was updated successfully, but these errors were encountered:
In a tech meeting we decided to implement cli commands to resend pending invites and delete user accounts which are in pending state, since they are quite safe to delete as there are no relations in them.
CKAN version
2.9, probably 2.10, 2.11 and master
Describe the bug
If sending user invite email fails for whatever reason the user gets deleted as is designed.
ckan/ckan/logic/action/create.py
Lines 1090 to 1100 in ffd2531
When the error causing the failed email sending is fixed, the user cannot be invited as it is in deleted state in the database and email address needs to be unique.
Steps to reproduce
Mis-configure email server.
Invite a user.
Receive an error and the message that user was not created.
Fix the email server configuration.
Try to invite the user again.
Expected behavior
User should be invited.
Additional details
There are some fixes and issues for this already like #5658 and #6916, but those are somewhat counter-intuitive solutions for this. Possible fixes in my mind are either delete the created user completely if invite fails or reactive deleted user when inviting them.
The text was updated successfully, but these errors were encountered: