Actions
Defect #35656
closedWhen importing issue relations, the validation messages are not shown in the UI
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
If you import a CSV with invalid relations, the validations messages are not shown in the UI.
The attached CSV can be used to reproduce the problem and it should generate the following error in the logs:
ActiveRecord::RecordInvalid (Validation failed: Related issue cannot be blank): app/models/issue_import.rb:289:in `block (2 levels) in build_relations' app/models/issue_import.rb:252:in `each' app/models/issue_import.rb:252:in `block in build_relations' app/models/issue_import.rb:248:in `each_key' app/models/issue_import.rb:248:in `build_relations' app/models/issue_import.rb:244:in `extend_object' app/models/import.rb:215:in `block in run' app/models/import.rb:142:in `block in read_items' app/models/import.rb:256:in `block in read_rows' app/models/import.rb:255:in `read_rows' app/models/import.rb:136:in `read_items' app/models/import.rb:194:in `run' app/controllers/imports_controller.rb:91:in `run' lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Files
Related issues
Updated by Marius BĂLTEANU almost 3 years ago
- Has duplicate Defect #36592: Import hangs when "related to" issue could not be created added
Updated by Marius BĂLTEANU almost 3 years ago
- Assignee set to Marius BĂLTEANU
- Target version changed from Candidate for next minor release to 4.2.4
Updated by Marius BĂLTEANU almost 3 years ago
- Related to Feature #28198: Support issue relations when importing issues added
Updated by Marius BĂLTEANU almost 3 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Actions