Issue Bug Resolved

#111381Form metadata is read incorrectly for multi-line, quoted or commented YAML values

Josua Vogel 11/09/26, 13:40 updated 11/19/26, 15:35

Description

To list forms quickly, ext:form reads the metadata of .form.yaml files (identifier, type, label, prototypeName) line by line instead of parsing the whole file. Each value is taken from its first line only:

  • label: >- or label: | with indented lines → empty label
  • a quoted or plain label spanning several lines → empty or truncated label
  • identifier: contact # comment → identifier contact # comment
  • identifier: ‘it’‘s’ → identifier it’‘s (not unescaped)

Affected are the form manager list and the form selection of the form plugin. The upgrade wizard “Migrate file-based forms to database storage” contains a copy of the same logic.

Expected: values are read like by the YAML parser, without giving up the performance gained by #86000.

Reviews 2

History 27

  1. Josua Vogel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-13T09:30:19+00:00" > 11/13/26, 09:30 </span>

    Applied in changeset commit:747107b0255a7f5eccf6796b91b4c3df87f4c5b0.

  2. Gerrit Code Review pushed patch set 2 for 14.3 to change 97600 status Resolved Under Review <span data-processor="relativetime" data-value="2026-11-13T14:04:01+00:00" > 11/13/26, 14:04 </span>

  3. Josua Vogel commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-19T15:35:11+00:00" > 11/19/26, 15:35 </span>

    Applied in changeset commit:eada3ee6f51da8585a250f1a42e506721b25753f.