opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.7k stars 898 forks source link

[BUG] Dev Tools Get _nodes with YAML crashes Dashboards #8243

Open landon-lengyel opened 2 months ago

landon-lengyel commented 2 months ago

Describe the bug GET _nodes?format=yaml crashes OpenSearch Dashboards due to the YAML formatting. Other API calls with YAML seem to work fine.

The error thrown is: JSON.parse: bad escaped character at line 1 column 65 of the JSON data

To Reproduce Steps to reproduce the behavior:

  1. Go to Dev Tools
  2. Run the API call: GET _nodes?format=yaml

Expected behavior Output the nodes in YAML format.

OpenSearch Version 2.17.0 (existed in last major version(s) as well)

Dashboards Version 2.17.0

Plugins

alertingDashboards@2.17.0.0
anomalyDetectionDashboards@2.17.0.0
assistantDashboards@2.17.0.0
customImportMapDashboards@2.17.0.0
ganttChartDashboards@2.17.0.0
indexManagementDashboards@2.17.0.0
mlCommonsDashboards@2.17.0.0
notificationsDashboards@2.17.0.0
observabilityDashboards@2.17.0.0
queryWorkbenchDashboards@2.17.0.0
reportsDashboards@2.17.0.0
searchRelevanceDashboards@2.17.0.0
securityAnalyticsDashboards@2.17.0.0
securityDashboards@2.17.0.0

Screenshots

Host/Environment (please complete the following information):

Additional context Full error:

parse@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/opensearchUiShared/opensearchUiShared.plugin.js:1:71418
expandLiteralStrings@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/opensearchUiShared/opensearchUiShared.plugin.js:1:73272
56/EditorOutputUI/<@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/console/console.chunk.2.js:1:328310
os@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:83209
gc@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:102288
__osdSharedDeps__</t.unstable_runWithPriority@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:443:3844
Xo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45024
bc@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:102047
Qs@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:93596
Vo/<@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45315
__osdSharedDeps__</t.unstable_runWithPriority@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:443:3844
Xo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45024
Vo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45262
Yo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45195
$s@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:90458
ba@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:62277
56/useSendCurrentRequestToOpenSearch/<@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/console/console.chunk.2.js:1:257056
dblock commented 1 month ago

[Catch All Triage - 1, 2, 3, 4]