Open landon-lengyel opened 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.
GET _nodes?format=yaml
The error thrown is: JSON.parse: bad escaped character at line 1 column 65 of the JSON data
JSON.parse: bad escaped character at line 1 column 65 of the JSON data
To Reproduce Steps to reproduce the behavior:
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
[Catch All Triage - 1, 2, 3, 4]
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:
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
Screenshots
Host/Environment (please complete the following information):
Additional context Full error: