Infinite recursion when trying to edit a dataset in a complete state
Sentry Issue: ARKINDEX-FRONTEND-BDF
RangeError: Maximum call stack size exceeded
at None (/arkindex/1.5.3/arkindex-users-1.5.3.js:1:1556198)
at Array.map (<anonymous>)
at Proxy.parseFieldErrors (/arkindex/1.5.3/arkindex-users-1.5.3.js:1:1556184)
at None (/arkindex/1.5.3/arkindex-users-1.5.3.js:1:1556206)
at Array.map (<anonymous>)
...
(45 additional frame(s) were not displayed)
The dataset edition modal is the only modal that tries to parse error messages recursively, but it only expects error messages to be object that contain keys with arrays as the value.
Editing a dataset in a complete
state causes this API error: ["This dataset is in complete state and cannot be modified anymore."]
. which is an array and not an object. Editing without authentication would cause {"detail": "Authentication credentials were not provided."}
, which is an object that contains a string and not an array. In both of those cases, the parser will recurse forever.