oecd-opsi / opsi

Custom theme for OPSI website
0 stars 0 forks source link

Error when approving/deleting new users #26

Closed jlberryhill closed 5 years ago

jlberryhill commented 5 years ago

@conlaccento

Would you mind checking the error below? We keep receiving it when deleting or approving new users. Thanks!

mailerror

conlaccento commented 5 years ago

Hello @jlberryhill, we will check it as soon as possible

conlaccento commented 5 years ago

Hi @jlberryhill, I try to check the issue but everything worked as expected. Can you give us more details to replicate the error. However I do not think it is an error due to our intervention, we didn't work on users management.

jlberryhill commented 5 years ago

Hi @conlaccento -- we are still having the same issue. It tends to happen when we try to delete a bunch of accounts at the same time which we have needed to do because we had a ton of spam-bot registrations. You can try to replicate the error yourself by searching for Pending users with email addresses ending in ".ru" (type that into the search box and click all the pending users and try to delete. It may not occur the first time, so try again. We have a new purchase order in place for bux fixes that arent related to Black Studio development (cc @marcochiesi)

conlaccento commented 5 years ago

Hello @jlberryhill, now bulk delete works and I deleted all .ru users. Let me know if you noticed further problems.

jlberryhill commented 5 years ago

@conlaccento -- The error is still occurring. Here is my path:

Log in > click on Pending Users prompt > search for "torrent", which bring ups a bunch of spam accounts > I click he box next to "Username" to select every account at once > Under the Bulk Actions drop-down, I select Delete > Click Apply > I come to the "You have specified these users for deletion" page > I click Confirm Deletion > I get the same error as screenshotted above.

conlaccento commented 5 years ago

Hi @jlberryhill, the problem is with Google API: when you delete an user the system send an email notification to this user. When you try to bulk delete fake account, Google try to send all this email to fake addresses, and reply with an error that stops the deleting process. Now we disabled the notifications on user delete so the problem will no longer show up.

jlberryhill commented 5 years ago

Thanks @conlaccento. We gave it a try and unfortunately it seems to still be happening.

conlaccento commented 5 years ago

@jlberryhill can you tell me if there are other spam accounts that I can delete for testing?

conlaccento commented 5 years ago

@jlberryhill we probably found the solution, can you test again and give me a feedback? Thanks

jlberryhill commented 5 years ago

Hi @conlaccento -- It's working - thanks!