Closed
Description
Request Type
Bug
Work Environment
Question | Answer |
---|---|
OS version (server) | Ubuntu |
TheHive source version / git hash | 3.4.2 |
TheHive target version / git hash | 4.1.1 |
Problem Description
I am using the migration tool to migrate from THv3.4.2 to 4.1.1 going through 3.5.1. In my elastic i have _15 and _17 indexes.
When i use the migration tool i am having problems because the tool is trying to use _15 index and deeping on the code i think if this portion of code (https://github.com/TheHive-Project/TheHive/blob/main/migration/src/main/scala/org/thp/thehive/migration/th3/DBConfiguration.scala#L208)
val index_3_5_1 = indexBaseName + "_17"
val index_3_5_0 = indexBaseName + "_16"
because the val _15 is for 3.4.2
val index_3_4_2 = indexBaseName + "_15"
Possible Solutions
Change this code to use _17 index