Project

General

Profile

Actions

Defect #34326

closed

CSV import raises an exception if CSV header has empty columns

Added by Go MAEDA over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Importers
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

To reproduce the error, attempt to import issues from the attached csv file (issues.csv). In the CSV file, the second column of the header is blank.

You will see an error page after clicking the "Next" button on the import options page.

Started GET "/imports/ad8c66039d97b44886137856ade5f856/mapping" for 127.0.0.1 at 2020-11-27 14:51:09 +0900
Processing by ImportsController#mapping as HTML
  Parameters: {"id"=>"ad8c66039d97b44886137856ade5f856"}
.
.
.
NoMethodError (undefined method `downcase' for nil:NilClass):

app/controllers/imports_controller.rb:177:in `map'
app/controllers/imports_controller.rb:177:in `auto_map_fields'
app/controllers/imports_controller.rb:70:in `mapping'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Files

issues.csv (499 Bytes) issues.csv Go MAEDA, 2020-11-27 06:47
fixed-34326.patch (3.6 KB) fixed-34326.patch Yuichi HARADA, 2020-11-30 08:41
34326-v2.patch (1.32 KB) 34326-v2.patch Go MAEDA, 2020-12-03 15:11

Related issues

Related to Redmine - Feature #22913: Auto-select fields mapping in ImportingClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF