STARIONGROUP / COMET-WebServices-Community-Edition

The Concurrent Design Platform Web Services that are compliant with ECSS-E-TM-10-25 Annex A and Annex C
https://www.stariongroup.eu
Other
11 stars 5 forks source link

Data import flow does not validate cyclic dependencies #209

Open cozminvelciu opened 3 years ago

cozminvelciu commented 3 years ago

Description

The data import route does not validate in any way the input Annex C.3 zip archive for cyclic dependencies. If [a model in] the archive given as input contains cyclic dependencies, the WebServices server accepts it without any error or warning and creates the necessary databases.

In my case, I had a cyclic ParameterGroup, but I assume this can be reproduced with any of the possible data cycles.

If opening said model afterwards, when trying to interact (e.g. inspect) with the cyclic thing (tested with a ParameterGroup), the client/addin just hangs, presumably entering an infinite loop - after which it crashes and restarts.

cyclic_PG_stackoverflow

This issue is reported here and not in the SAT as the only implementation for cycle validation is done in server-side side-effects on update operations.

Steps to Reproduce

  1. Migrate a model (using SAT) containing a cyclic dependence
  2. Open previously mentioned model afterwards in the addin
  3. Interact (e.g. inspect) with the cyclic thing (tested with a ParameterGroup)
  4. The addin hangs, after which it crashes and restart

System Configuration

Docker compose setup with services v6.1.4.

adrianchivu commented 3 years ago

As discussed with @alexatrhea:

cozminvelciu commented 3 years ago

Tagging @nlmave here for input.