cairis-platform / cairis

Computer Aided Integration of Requirements and Information Security - Server
https://cairis.org
Apache License 2.0
148 stars 57 forks source link

Unable to import CAIRIS DFD shape library in diagrams.net #677

Open gmaran23 opened 2 months ago

gmaran23 commented 2 months ago

Expected behaviour

CAIRIS DFD shape library to be imported

Actual behaviour

Error loading file "this.ui.hashValue is not a funtion"

image

Steps to reproduce the behaviour

Reference: https://cairis.readthedocs.io/en/latest/threats_tm.html#modelling-dfds-with-diagrams-net You can use diagrams.net to import DFDs into CAIRIS by following the steps below:

1. Create a new blank diagram in [diagrams.net](https://diagrams.net/) .
2. Setup the CAIRIS DFD shape library by going to the File >> Open Library from >> URL menu, and entering the URL https://cairis.org/stencils/cairis_dfd.xml.

Version of CAIRIS

https://diagrams.net/

Details of browser or, if applicable, details of the OS used to host CAIRIS

Tried Chrome, Firefox, MACOS, Windows

P.S: I have existing DFDs made with CAIRIS stencils, they work fine when imported. But I am unable to create new diagrams by importing the CAIRIS DFD shape library.

gmaran23 commented 2 months ago

Workaround

  1. Navigate to https://cairis.org/stencils/cairis_dfd.xml
  2. Copy the XML content and paste it in to a text editor (Sublime/VS Code/Notepad/vi)
  3. Save the XML content as cairis_dfd.xml
  4. Go to https://diagrams.net/
  5. File >> Open Library from >> Device...
  6. Choose cairis_dfd.xml from your local file system

image