ArcadeData / arcadeanalytics

Arcade Analytics is the first Open Source Graph Analytics platform. Connect your Graph Database (Neo4j, OrientDB, Amazon Neptune, Microsoft CosmosDB, etc) and RDBMS (Oracle, MySQL, Postgres, Microsoft SQLServer, MariaDB) to create powerful dashboards.
https://arcadeanalytics.com
Apache License 2.0
190 stars 30 forks source link

Cyclic graph Json exception #168

Open petko-boyadzhiev opened 4 years ago

petko-boyadzhiev commented 4 years ago

If arcadeanalytics supports cyclic graphs then this is a bug. If not, the error should state that fact instead of Json mapping exception.

To Reproduce Steps to reproduce the behavior:

  1. start empty janusgraph
  2. start arcadeanalytics
  3. Open the gremlin console via "docker exec -it /bin/bash", then "./bin/gramlin.sh"
  4. ":remote connect tinkerpop.server conf/remote.yaml session"
  5. ":remote console"
  6. "GraphOfTheGodsFactory.load(graph)" it should output ==>null
  7. Login in arcade and create datasource for this janusgraph. Note that you should write something in username and password and then delete it in order for the values to become empty strings.
  8. Index the datasource
  9. Create graph widget and open it
  10. Search with this query ""g.V().has("name","cerberus")
  11. Mark the vertex and traverse "battled" An error will appear: Could not write JSON: Direct self-reference leading to cycle; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Direct self-reference leading to cycle

    • OS: Mac OS
    • Browser Chrome
    • Version: Version 78.0.3904.70 (Official Build) (64-bit)

The visualization for graph of the gods can be found here: http://s3.thinkaurelius.com/docs/titan/0.5.0/images/graph-of-the-gods.png Do note that the edges are black and the image is transparent, so view it with white background :)

arcade-player commented 4 years ago

thank you forthe detailed report, we will investigate it