docintelapp / DocIntel

Open Source Platform for storing, organizing, and searching documents related to cyber threats
https://docintel.org
Other
154 stars 24 forks source link

Creation of a tag twice #100

Open blipsen opened 7 months ago

blipsen commented 7 months ago

It seems that it is possible to create a tag with the same name twice.

I tried creating the same tag for a third time and DocIntel is telling me that the “Label” (the name of the tag basically) already exists.

When I try to click on either of the two “same” tags I get a DB crash error: InvalidOperationException: “Sequence contains more than one element” and “System.Linq.ThrowHelper.ThrowMoreThanOneElementException()”.

This might be due to the fact that DocIntel doesn’t know what to do with two of the same objects existing at the same time while being unable to prevent their creation in the first place.