Skip to content

No check for valid icon in sitemap DSL when enclosed in quotation marks #5706

Description

@dilyanpalauzov

I load a .sitemap file:

sitemap m {
  Switch item=i_Mute icon="soundvolume_mute.png"
}

This sitemap is by all means valid. In openHAB 5.2.0 MainUI, by visiting GET /sitemaps/mCode, I convert it to YAML. The result is:

version: 1
sitemaps:
  m:
    widgets:
      - type: Switch
        item: i_Mute
        icon: soundvolume_mute.png

I replace above m: with n: and store the result as file yaml/sitemap-n.yaml. openHAB logs:

2026-07-10 08:54:20.897 [INFO ] [aml.internal.YamlModelRepositoryImpl] - Adding YAML model yaml/sitemap-n.yaml
2026-07-10 08:54:20.903 [WARN ] [aml.internal.YamlModelRepositoryImpl] - YAML model yaml/sitemap-n.yaml: invalid sitemap "n": widget 1/1 of type Switch: invalid icon value "soundvolume_mute.png" for "name" field; it must contain a maximum of 3 segments separated by a colon, each segment matching pattern [a-zA-Z0-9_][a-zA-Z0-9_-]*

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions