Page MenuHomeClusterLabs Projects

pcmk_controld_api_node_info() sets an invalid XML ID
Closed (Released)Public

Assigned To
Authored By
nrwahl2
Jul 11 2024, 5:16 AM
Tags
  • Restricted Project
  • Restricted Project
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

if (nodeid > 0) {
    pcmk__xe_set_id(request, "%lu", (unsigned long) nodeid);
}

An XML ID can't start with a digit, so pcmk__xe_set_id() -> pcmk__xml_sanitize_id() converts the first character to an underscore.

Event Timeline

nrwahl2 triaged this task as Normal priority.Jul 11 2024, 5:16 AM
nrwahl2 created this task.
nrwahl2 created this object with edit policy "Restricted Project (Project)".
kgaillot added a project: Restricted Project.
kgaillot added a project: Restricted Project.Jul 11 2024, 5:27 PM
kgaillot moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
kgaillot changed the task status from Merged to Released.Aug 8 2024, 7:13 PM