Description
When we import an analyse which has amvs linked with measures, the linked measures are not imported.
To Reproduce
Import MyPrint [EN]
2.1 Go to the database and check that there are no relation records in the table measures_amvs.
2.2 Or export it and open the exported file in a json editor and search for "amvs". The "measures" key is not presented.
In the original My Print [EN] has measures list related to the amv, for example:
"amvs": { "7f9fb477-4f02-11e9-b3ea-0800277f0571": { "uuid": "7f9fb477-4f02-11e9-b3ea-0800277f0571", "threat": "b402d5af-4576-11e9-9173-0800277f0571", "asset": "d2023da7-44d1-11e9-a78c-0800277f0571", "vulnerability": "69fc054b-4591-11e9-9173-0800277f0571", "measures": [ "06679cfa-1bfd-436a-b99d-698fb275dfdb", "157d5514-b3cd-4d31-9bff-560a1a436d96", "de6195c6-1fc1-423a-a748-785653c9324f", "e8ed7158-ffc1-44a4-8673-80286ad97b36" ], "status": 1 },
Description When we import an analyse which has amvs linked with measures, the linked measures are not imported.
To Reproduce
measures_amvs
. 2.2 Or export it and open the exported file in a json editor and search for "amvs". The "measures" key is not presented.In the original My Print [EN] has measures list related to the amv, for example:
"amvs": { "7f9fb477-4f02-11e9-b3ea-0800277f0571": { "uuid": "7f9fb477-4f02-11e9-b3ea-0800277f0571", "threat": "b402d5af-4576-11e9-9173-0800277f0571", "asset": "d2023da7-44d1-11e9-a78c-0800277f0571", "vulnerability": "69fc054b-4591-11e9-9173-0800277f0571", "measures": [ "06679cfa-1bfd-436a-b99d-698fb275dfdb", "157d5514-b3cd-4d31-9bff-560a1a436d96", "de6195c6-1fc1-423a-a748-785653c9324f", "e8ed7158-ffc1-44a4-8673-80286ad97b36" ], "status": 1 },