#3251 Creating duplicated tag gives bad error message
Closed: Fixed 5 years ago Opened 5 years ago by lsedlar.

I tried to create a tag that already existed (I think). The error message I got was yellow, so it looks more like warning, and it contained the exception text with way too many details.

(IntegrityError) duplicate key value violates unique constraint "tags_colored_project_id_key" DETAIL: Key (project_id, tag)=(8, 4.1.25) already exists. 'INSERT INTO tags_colored (tag, tag_description, project_id, tag_color, date_created) VALUES (%(tag)s, %(tag_description)s, %(project_id)s, %(tag_color)s, %(date_created)s) RETURNING tags_colored.id' {'tag_color': u'#00bfff', 'project_id': 8, 'tag': u'4.1.25', 'tag_description': u'Issues fixed in 4.1.25 release', 'date_created': datetime.datetime(2018, 5, 23, 6, 37, 7, 865242)} 

Snimek_z_2018-05-23_08-39-40.png


Hmm, the issue edit form preview shows the text above as blockquote...

Metadata Update from @pingou:
- Issue tagged with: bug

5 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Login to comment on this ticket.

Metadata
Attachments 1
Related Pull Requests
  • #3351 Merged 5 years ago