plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Incorrect HTML Entity Rendering in Chrony Source Hostnames

Open cjcar61 opened this issue 7 months ago • 0 comments

Acknowledgement

  • [ x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [ x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Description This is a very minor display bug in Chrony. (The URL in question is .../ui/chrony/general/index) At Services/Chrony/General/Sources hostnames that are long enough to be truncated in the “Name/IP Address” column are incorrectly rendered with raw HTML entities. For example a hostname of "stjhnbsu6iw-159-2-201-209.dhcp-dynamic.fibreop.nb.bellaliant.net" is truncated to "stjhnbsu6iw-159-2-201-20>" but instead appears as "stjhnbsu6iw-159-2-201-20>" The bug can also be observed at Services/Chrony/General/Source Stats (even in this bug report I had to properly escape the ampersand character to force the problem characters to be rendered correctly!)

To Reproduce

  1. Add ntp.wetmore.ca as an NTP Peer at Services/Chrony/General and Save
  2. Observe (possibly after waiting some time to allow the server to appear in the list of peers) that the truncated hostname (produced by doing reverse DNS on the ip address??) contains ">" instead of ">"

Screenshot:

Image

Software version used: Opnsense versions 25.1.6 and 25.1.7 for sure. Earlier versions unknown.

cjcar61 avatar May 19 '25 20:05 cjcar61