apply security patch: release-10.4.17/347-202503050958.patch

commit b7184f744bea3838baea12de4a02da715a4f5afd
Author: oscarkilhed <oscar.kilhed@grafana.com>
Date:   Fri Feb 28 16:32:58 2025 +0100

    Limit number of characters in the title
release-10.4.17
github-actions[bot] 3 months ago
parent d56fe271bb
commit 2fb1e0d107
  1. 2
      public/app/features/dashboard-scene/serialization/transformSaveModelToScene.ts
  2. 1
      public/app/features/dashboard/dashgrid/DashboardGrid.tsx

@ -432,7 +432,7 @@ export function buildGridItemForPanel(panel: PanelModel): SceneGridItemLike {
const vizPanelState: VizPanelState = {
key: getVizPanelKeyForPanelId(panel.id),
title: panel.title,
title: panel.title?.substring(0, 5000),
description: panel.description,
pluginId: panel.type,
options: panel.options ?? {},

@ -111,6 +111,7 @@ export class DashboardGrid extends PureComponent<Props, State> {
if (!panel.key) {
panel.key = `panel-${panel.id}-${Date.now()}`;
}
panel.title = panel.title?.substring(0, 5000);
this.panelMap[panel.key] = panel;
if (!panel.gridPos) {

Loading…
Cancel
Save