Project

General

Profile

Actions

Bug #9268

closed

Frontend portals gives API errors if API response is an array

Added by Entgra Admin over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
None
Category:
UI
Start date:
04/03/2022
Due date:
% Done:

0%

Estimated time:
0:00 h

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
------------------------

  1. 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)

  1. Affected Product Version:
    5.0.3
  1. OS, DB, other environment details and versions:
    Linux
  1. Steps to reproduce:

1. Visit home page of store
2. You will get error notifications


Files

(2597_img)image.png (89.5 KB) (2597_img)image.png image.png Entgra Admin, 25/10/2022 06:03 PM
Actions #1

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
Actions #2

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
Actions #3

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
Actions

Also available in: Atom PDF