Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
gmaran23 opened this issue Aug 20, 2024 · 1 comment
Open

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

gmaran23 opened this issue Aug 20, 2024 · 1 comment

Comments

@gmaran23
Copy link

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
Copy link
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant