structurizr / java

Structurizr for Java
https://docs.structurizr.com/java
Apache License 2.0
1.01k stars 288 forks source link

Plantuml renderer: Group and system of same name yields puml code resulting in error #258

Closed mawid6 closed 8 months ago

mawid6 commented 8 months ago

Description

Hi! Having a group with the same name as a system in the group, and then rendering with StructurizrPlantUMLExporter yields puml code that does not render an image but an error. It works with e g the C4PlantUMLExporter plantuml renderer.

Steps to reproduce

  1. Navigate to web ui to test
  2. Paste code
  3. Try normal render, ok, try plantuml render and click to render - error message is rendered. Other (C4PlantUMLExporter) plantuml renderer works fine, also.

Screenshot

image

Code sample

workspace "same-name-group-system-plantuml-renderer-error" {
    !identifiers hierarchical 
    model {
        group "Kompis" {
            kompis = softwareSystem "Kompis"
        }
        github = softwareSystem "Github"
        azure = softwareSystem "Azure"

        space = softwareSystem "IPEX space" {
            -> github "Is built using:"
            -> azure "Uses"
            -> kompis "Uses"
        }
    }

    views {
        systemContext space {
            autolayout lr
            include *
        }
    }
}

Configuration

Web version

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

Workaround: Dont use same name for group and system in your hierarchy.