Multiple errors across the UI appear as json strings
Bug #1819628 reported by
Steve Rydz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
Medium
|
Unassigned | ||
maas-ui |
Fix Committed
|
Medium
|
Peter Makowski |
Bug Description
When enabling DHCP or relaying VLAN, if there is an error, for example enabling DHCP without specifying a primary rack or relaying VLAN to an invalid VLAN the error comes back as a JSON string.
Screenshot: https:/
It's not possible to simply parse this client side as the key isn't always the same. I have seen it as `__relay__` rather than `__all__`, and other times it's been just a string.
Ideally a string will always be returned, otherwise if a JSON response is necessary it should be consistent so it can be parsed client side.
Changed in maas: | |
status: | New → Triaged |
tags: | added: error-surface |
summary: |
- [UI] Multiple errors across the UI appear as json strings + Multiple errors across the UI appear as json strings |
Changed in maas: | |
importance: | Undecided → Medium |
milestone: | 2.6.0 → 3.5.0 |
Changed in maas: | |
milestone: | 3.5.0 → 3.5.x |
Changed in maas-ui: | |
milestone: | 3.5.0 → 3.5.x |
Changed in maas-ui: | |
assignee: | nobody → Peter Makowski (petermakowski) |
To post a comment you must log in.
This is an error across all of the UI. This is because the API returns a json string but the error handling on the UI doesn't deal with that correctly.