cairis-platform / cairis-platform/cairis

Unable to import CAIRIS DFD shape library in diagrams.net

Open
#677 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
172
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Expected behaviour
CAIRIS DFD shape library to be imported

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

![image](https://github.com/user-attachments/assets/0194f3f0-167d-43ab-9ef6-6e3bf4f98c07)

### Steps to reproduce the behaviour

Reference: [https://cairis.readthedocs.io/en/latest/threats_tm.html#modelling-dfds-with-diagrams-net](https://cairis.readthedocs.io/en/latest/threats_tm.html#modelling-dfds-with-diagrams-net)
You can use [diagrams.net](https://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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the import from diagrams.net using File > Open Library from > URL and https://cairis.org/stencils/cairis_dfd.xml, then compare the behavior across the browsers listed in the report. Trace whether the failure is in the CAIRIS stencil URL or diagrams.net compatibility; done means the CAIRIS DFD shape library imports without the reported error.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.