Skip to content

Missing validation of variable name #5188

@barmac

Description

@barmac

Describe the bug

When you try to deploy a model with input or output mapping named inner-outer, the deployment fails with the following error:

Command 'CREATE' rejected with code 'INVALID_ARGUMENT': Expected to deploy new resources, but encountered the following errors:
'New BPMN diagram.bpmn': - Element: Event_1grs7z6 > extensionElements > ioMapping > output
    - ERROR: Expected path expression 'inner-lost' but doesn't match the pattern '[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]*)*'.
- Element: Activity_1h69l8i > extensionElements > ioMapping > output
    - ERROR: Expected path expression 'inner-outer' but doesn't match the pattern '[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]*)*'.
[ deploy-error ] 30/7/2025 15:23:42
Image

Steps to reproduce

  1. Try to deploy attached diagram:

New BPMN diagram.bpmn.txt

Expected behavior

An error should be reported.

Environment

  • OS: [e.g. MacOS 10.2, Windows 10]
  • Camunda Modeler Version: [e.g. 2.0.0]
  • Execution Platform: [e.g. Camunda 7, Camunda 8]
  • Installed plug-ins: [...]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions