Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting malformed csv file causes 500 error #2

Open
modsaid opened this issue Oct 8, 2012 · 3 comments
Open

Inserting malformed csv file causes 500 error #2

modsaid opened this issue Oct 8, 2012 · 3 comments
Assignees

Comments

@modsaid
Copy link
Contributor

modsaid commented Oct 8, 2012

When uploading a file that is nor correct CSV. the app breaks with the following log error in the log:

NameError (uninitialized constant CSV::IllegalFormatError):
plugins/redmine_import_from_csv/app/controllers/import_from_csv_controller.rb:53:in rescue in csv_import' plugins/redmine_import_from_csv/app/controllers/import_from_csv_controller.rb:23:incsv_import'
.....

@ghost ghost assigned Yasmine-Gaber Oct 8, 2012
@srogers
Copy link

srogers commented Sep 5, 2013

It could be because that exception is renamed to CSV::MalformedCSVError in Ruby 1.9

@modsaid
Copy link
Contributor Author

modsaid commented Sep 5, 2013

@srogers Which redmine version are you using?

@srogers
Copy link

srogers commented Sep 5, 2013

I'm not using Redmine at all, but I just fixed that same bug in my own code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants