These warnings are unrelated to your issue. Everyone who did not configure a MaxMind licence key sees them. Since people are wasting time investigating these warnings, when they face other issues, I wanted to mute them. However, my commit was reverted, since it broke some other CI tests and dev environments. Needs to be redone in another way.
Regarding your issue, here are the relevant code blocks:
- discourse/app/controllers/admin/badges_controller.rb at main · discourse/discourse · GitHub
- discourse/app/services/badge_granter.rb at main · discourse/discourse · GitHub
I do not see any obvious bug, but I am also no Ruby programmer. I tested it on our instance with a single and two email addresses in a simple comma-separated CSV, and it did work. It did also work, regardless whether I use LF or CRLF file endings, just to rule out some common file parser issues. How do you create the CSV file, and does it look fine when you open it in a simple text editor, like notepad, nano, vi, whatever?