Skip to content

Commit

Permalink
TheHive-Project#2058 Fix missing tag when importing alerts from misp
Browse files Browse the repository at this point in the history
  • Loading branch information
vdebergue committed Jun 10, 2021
1 parent 9eb14bc commit 8bf9dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MispImportSrv @Inject() (
read = false,
follow = true,
organisationId = organisationId,
tags = event.tags.map(_.name),
tags = s"src:${event.orgc}" +: event.tags.map(_.name),
caseId = EntityId.empty
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MispImportSrvTest(implicit ec: ExecutionContext) extends PlaySpecification
pap = 2,
read = false,
follow = true,
tags = Seq("TH-test", "TH-test-2"),
tags = Seq("src:ORGNAME", "TH-test", "TH-test-2"),
organisationId = alert.organisationId,
caseId = EntityId.empty
)
Expand Down

0 comments on commit 8bf9dd7

Please sign in to comment.