Bug #10945
closedAlias popup not displaying contents
100%
Description
On firewall rules when hovering over an alias, the info popup only displays the header "Alias details" and no contents. Inspecting the element in the browser shows the contents are in the HTML, but are not being rendered.
This is on a current snapshot. I have another VM on a snapshot from the 17th and it is OK, so something in the last two weeks (Bootstrap changes?)
Files
Updated by Viktor Gurov about 4 years ago
same issue with gateway_info_popup()
and on Firewall NAT pages too
Updated by Anonymous about 4 years ago
The issue is caused by changes in Bootstrap 3.4.1 which disable HTML in popovers. In theory, this should turn off the sanitizer:
$('[data-toggle="popover"]').popover({ sanitize: false, });
but it does not work as expected. Researching other options.
Updated by Anonymous about 4 years ago
Specifically adding table elements to the sanitizer's list of allowed content is effective:
// Bootstrap 3.4.1+ sanitizes the contents of popovers even when data-html is specified // Add table tags to the list of elements permitted by the sanitizer var defaultWhiteList = $.fn.tooltip.Constructor.DEFAULTS.whiteList defaultWhiteList.table = [] defaultWhiteList.thead = [] defaultWhiteList.tr = [] defaultWhiteList.th = ["style"] defaultWhiteList.tbody = [] defaultWhiteList.td = ["style"]
Updated by Anonymous about 4 years ago
- % Done changed from 0 to 100
Applied in changeset 72f4fb2c0bad87e04ce4a442724c1753bbfb1678.
Updated by Danilo Zrenjanin about 4 years ago
- File Screenshot 2020-10-02 at 16.02.22.png Screenshot 2020-10-02 at 16.02.22.png added
- File Screenshot 2020-10-02 at 16.04.25.png Screenshot 2020-10-02 at 16.04.25.png added
- Status changed from Feedback to Resolved
Tested the patch on the:
2.5.0-DEVELOPMENT (amd64) built on Fri Oct 02 06:54:02 EDT 2020 FreeBSD 12.2-STABLE
It looks fine now. Ticket resloved.
Updated by Jim Pingle about 4 years ago
- Status changed from Resolved to In Progress
Aliases are working OK for me but Gateway popovers are empty still.
Updated by Anonymous about 4 years ago
The gateway popup issue is not related to this one. See https://redmine.pfsense.org/issues/10948
Updated by Anonymous about 4 years ago
- Status changed from In Progress to Resolved