leovitch/redmine_importer — Issue #19: Can't import default CSVs
Author: dgventura
Created: 2012-02-03 06:04:01+00:00
State: open

I got past some of the early stumbling blocks to progress to the "match" interface for the importer, but after that I get an error as follows below. I'm on Redmine 1.3. I know nothing of Ruby, unfortunately, so sorry if this isn't enough info for an error report. Please help!

Processing ImporterController#index (for 192.168.20.168 at 2012-02-03 14:37:31) [GET]
Parameters: {"action"=>"index", "project_id"=>"dms", "controller"=>"importer"}
Rendering template within layouts/base
Rendering importer/index
Completed in 18ms (View: 14, DB: 2) | 200 OK [http://192.168.21.666/importer?project_id=dms]

Processing ImporterController#match (for 192.168.20.168 at 2012-02-03 14:37:37) [POST]
Parameters: {"encoding"=>"U", "authenticity_token"=>"ut4x/vYZchqwtIojTdIRaToNJKapYQRHN67j64ELjMk=", "commit"=>"Upload File", "action"=>"match", "file"=>#, "wrapper"=>"\"", "project_id"=>"1", "splitter"=>",", "controller"=>"importer"}
Rendering template within layouts/base
Rendering importer/match
Completed in 153ms (View: 12, DB: 135) | 200 OK [http://192.168.21.666/importer/match]

Processing ImporterController#result (for 192.168.20.168 at 2012-02-03 14:37:40) [POST]
Parameters: {"authenticity_token"=>"ut4x/vYZchqwtIojTdIRaToNJKapYQRHN67j64ELjMk=", "commit"=>"Submit", "action"=>"result", "add_categories"=>"true", "import_timestamp"=>"2012-02-03 14:37:37", "pr
oject_id"=>"1", "default_tracker"=>"1", "unique_field"=>"", "controller"=>"importer", "send_emails"=>"true", "add_versions"=>"true"}

NoMethodError (undefined method `[]' for nil:NilClass):
vendor/plugins/redmine_importer/app/controllers/importer_controller.rb:199:in `result'
passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.11) helper-scripts/passenger-spawn-server:99