Bug #10795
closedWebGUI "Dashboard -> Services Status" widget issue
100%
Description
If i use FQDN in description of openvpn service, the description line will be truncated after the first dot because:
$service_desc = explode(".",$service['description']);
For example: for desctiption «Tunnel to gw.domain.local» i will see «OpenVPN Server: Tunnel to gw»
If i use several tunnels with same text, but different FQDN (gw.domain1.local, gw.domain2.local, etc) i will see several lines in widget with same description: «OpenVPN Server: Tunnel to gw». It is impossible to understand where what tunnel
I did changed line 103 to:
$service_desc = explode(". ",$service['description']);
Dot + space instead dot only. Because sentences are normally separated by a dot and a space. And now, for example: for description «Tunnel to gw.domain.local. Some huge text...» i will see «OpenVPN Server: Tunnel to gw.domain.local». Only next sentences will be truncated.
Sorry for my English, please.
Files
Updated by Jim Pingle over 4 years ago
- Category set to Dashboard
Can you submit that change as a pull request on Github?
https://docs.netgate.com/pfsense/en/latest/development/submitting-a-pull-request-via-github.html
Updated by Mikhail Burichenko over 4 years ago
Jim Pingle wrote:
Can you submit that change as a pull request on Github?
Updated by Jim Pingle over 4 years ago
- Status changed from New to Pull Request Review
- Target version set to 2.5.0
Updated by Renato Botelho over 4 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Renato Botelho
- % Done changed from 0 to 100
PR has been merged. Thanks!
Updated by Danilo Zrenjanin about 4 years ago
- File Screenshot_2020-09-04 off-gate ipbgd office - Status Dashboard.png Screenshot_2020-09-04 off-gate ipbgd office - Status Dashboard.png added
- File Screenshot_2020-09-04 off-gate ipbgd office - VPN OpenVPN Servers.png Screenshot_2020-09-04 off-gate ipbgd office - VPN OpenVPN Servers.png added
I am not sure what versions are affected but I can define OpenVPN description using dots. e.g. <<Tunnel to office.domain.local>> and <<Tunnel to gw.domain.local>>
Tested on:
2.4.5-RELEASE-p1 (arm) built on Tue Jun 02 17:45:24 EDT 2020 FreeBSD 11.3-STABLE
Updated by Max Leighton about 4 years ago
- File servicestatus_2_4_5p1.png servicestatus_2_4_5p1.png added
- File servicestatus2_5_0.png servicestatus2_5_0.png added
- Status changed from Feedback to Resolved
I was able to reproduce using the Service Status widget rather than the OpenVPN widget. The behavior can be seen in 2.4.5_1. The Service Status widget will show the incorrect name, but the OpenVPN widget will show the correct name.
Tested again in:
2.5.0-DEVELOPMENT (amd64)
built on Sun Sep 13 13:04:14 EDT 2020
FreeBSD 12.2-PRERELEASE
And it has been fixed. Resolving the ticket