Project

General

Profile

Actions

Defect #35656

closed

When importing issue relations, the validation messages are not shown in the UI

Added by Marius BĂLTEANU about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Importers
Target version:
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

RelationTest (2).csv (134 Bytes) RelationTest (2).csv Marius BĂLTEANU, 2021-08-01 16:05

Related issues

Related to Redmine - Feature #28198: Support issue relations when importing issuesClosedGo MAEDA

Actions
Has duplicate Redmine - Defect #36592: Import hangs when "related to" issue could not be createdClosed

Actions
Actions #1

Updated by Marius BĂLTEANU over 2 years ago

  • Has duplicate Defect #36592: Import hangs when "related to" issue could not be created added
Actions #2

Updated by Marius BĂLTEANU over 2 years ago

  • Assignee set to Marius BĂLTEANU
  • Target version changed from Candidate for next minor release to 4.2.4
Actions #3

Updated by Marius BĂLTEANU over 2 years ago

  • Related to Feature #28198: Support issue relations when importing issues added
Actions #4

Updated by Marius BĂLTEANU over 2 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed
Actions

Also available in: Atom PDF