FiercePhish icon indicating copy to clipboard operation
FiercePhish copied to clipboard

which targets were rejected on import?

Open digininja opened this issue 6 years ago • 2 comments

I had 3 targets in the system, I imported a CSV containing 562, I now have 563 targets in the system. The import failed for 2 of the entries but I don't know which ones. You need some way to show which lines failed.

digininja avatar Jun 19 '18 19:06 digininja

Yeah, thats true. The import job is a background job so I didn't make any type of error notification system for it, which was shortsighted. I'll make sure I address this in the next iteration! Good call

Raikia avatar Jun 19 '18 20:06 Raikia

For anyone interested, the way I worked it out was doing this:

select target_users.first_name, target_users.last_name, target_users.email from target_users into outfile "/var/lib/mysql-files/imported.csv" FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';

and then sorting and diffing the file with my input file.

digininja avatar Jun 19 '18 20:06 digininja