This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
User Import doesn't handle CR line endings [v5.5] #1438
Closed
Description
I was helping Laurel/BMEC use the user import function, and noticed it was choking on her CSV, which was created by Microsoft Excel 2011 and riddled with ^M
characters, which is the CR
of Mac-only line ending CR. The server-side log error messages indicated it couldn't find any users to import. (specifically choking on line 60 of import_users_controller.rb
, method keys unavailable on object nil---indicating there was no first user in the hash of imported users. Using Vim, I replaced all ^M
characters with standard \r
, and the import progressed further.
EDIT: The issue was originally erroneously reported as CRLF
incompatibility; it's CR
and I've edited the above for clarity.
Activity