CsvReader icon indicating copy to clipboard operation
CsvReader copied to clipboard

Privacy issues in exception handling

Open czeshirecat opened this issue 6 years ago • 1 comments

_csvReader.ParseError. When checking my error log file the following is found "OnCsvParseError The CSV appears to be corrupt near record '3174' field '1120 at position '1120'. Current raw data : " this is then followed by many lines of the contents of the csv file which contains data about users. It was brought to my attention that this might cause legal issues and I was asked to fix it. Is there any way to configure csv reader so as not to dump the data as part of the exception?

czeshirecat avatar Nov 28 '18 08:11 czeshirecat

Hi, You can simply wrap reader in try catch, and when this error appears show your custom message.

jakubmaguza avatar Nov 28 '18 08:11 jakubmaguza