Bug #9268
closedFrontend portals gives API errors if API response is an array
0%
Description
From Gitlab
------------------------
gitlabId --> 1270 https://gitlab.com/entgra/product-iots/-/issues/1270
labels --> Project: Cloud, QA: Approved, Status: QA, Status: Staged, Type: Bug, Type: UI/UX,
assignees --> amnd1188,
created_at --> 2022-03-04 17:45:32 IST +0530
updated_at --> 2022-03-07 16:08:54 IST +0530
------------------------
- Description
Whenever an API that returns an array in response data is used in front-end that errors. This is due to https://gitlab.com/entgra/carbon-device-mgt/-/merge_requests/851[1]. Before this change the APIs that returns
an array was stringified by ui-request-handler and then parsed in the front-end. However with the change [1] it errors when ever tried to parse since it no longer returns a stringified json array which can be parsed. That is the cause of the error
(2597_img)
- Affected Product Version:
5.0.3
- OS, DB, other environment details and versions:
Linux
- Steps to reproduce:
1. Visit home page of store
2. You will get error notifications
Files
Updated by Entgra Admin over 2 years ago
From Gitlab
------------------------
author: bmorashad
created_at: 2022-03-04 17:46:42 IST +0530
updated_at: 2022-03-04 17:46:42 IST +0530
------------------------
mentioned in merge request emm-proprietary-plugins!792
Updated by Entgra Admin over 2 years ago
From Gitlab
------------------------
author: inosh
created_at: 2022-03-07 09:48:36 IST +0530
updated_at: 2022-03-07 09:48:36 IST +0530
------------------------
assigned to @amnd1188
Updated by Entgra Admin over 2 years ago
From Gitlab
------------------------
author: amnd1188
created_at: 2022-03-07 16:08:08 IST +0530
updated_at: 2022-03-07 16:08:08 IST +0530
------------------------
This has been fixed