[BUG] Asset & Task lists are not shown in Web GUI when item description contains a JSON like string
Describe the bug Asset and Task lists are not rendered in the WebGUI when a JSON string is in the item description (e.g. {"Test":"Test"} with double quotes. Since list elements could no longer be edited in WebGUI only the deletion of the description content on database level helped (lists are then rendered again). Looks like issue is related to bootstrap-select.min.js and Tooltip functionality which runs into an exception during list rendering (with {"Test":"Test"} as description content the type is misinterpreted as object and not as string):
- Uncaught Error: TOOLTIP: Option "content" provided type "object" but expected type "(string|element|function)". Removal of line 137 in case.asset.js fixed the issue: $('[data-toggle="popover"]').popover(); and lists are always rendered as expected, independently of description content.
To Reproduce Steps to reproduce the behavior:
- Go to Case Asset or Case Task section
- Create a new item or select an existing one
- Put {"Test":"Test"} in the description field as single input
- Hit update
- Task/Asset lists are no longer loading
Expected behavior Regardless of the description content asset and task list should be shown / rendered completely without issues
Screenshots
Desktop (please complete the following information):
- OS: Linux ubunut
- Browser Firefox
- Version 119 (64-bit)
Smartphone (please complete the following information):
- not tested
Additional context Iris v2.3.7