[ZBX-16280] Plain Text Widgets do not display as HTML when option is selected Created: 2019 Jun 18  Updated: 2024 Apr 10  Resolved: 2019 Jul 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.2.3
Fix Version/s: 4.0.11rc1, 4.2.5rc1, 4.4.0alpha1, 4.4 (plan)

Type: Patch request Priority: Blocker
Reporter: rabih sarieddine Assignee: Vasily Goncharenko (Inactive)
Resolution: Fixed Votes: 1
Labels: plaintext, widget
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File after.fix.png     PNG File before.fix.png     PNG File test.sh.png     PNG File widget.result.png     PNG File widget.settings.png    
Issue Links:
Duplicate
duplicates ZBX-15136 Problem with displaying 'Plain text' ... Closed
Team: Team D
Sprint: Sprint 53 (Jun 2019), Sprint 54 (Jul 2019)
Story Points: 0.25

 Description   

Steps to reproduce:

  1. I have created an external item script in the default directory which echos "<b>toto</b>"
  2. I have created a new widget in my dashboard to display the external item as HTML
  3. instead of having a bold text toto i have the html text.

Result:
screenshot of external script is: test.sh.png

screenshot of widget settings is: widget.settings.png
screenshot of widget output is: widget.result.png

Expected:
Widget should display bold text by interpreting HTML. This feature was working ok in 3.4 and it stopped working after i migrated to 4.2.3



 Comments   
Comment by rabih sarieddine [ 2019 Jun 19 ]

Hi, for our local tests i really needed to fix the issue rapidly while waiting for your official fix. So i managed to fix the problem by changing the file

/usr/share/zabbix/app/controllers/CControllerWidgetPlainTextView.php

Please see the screenshot "before.fix.png" and "after.fix.png"

Before fix

After fix

 

 Please let me know your feedback

Comment by Aleksandrs Petrovs-Gavrilovs [ 2019 Jun 19 ]

Hello,

Thank you for your report!

Indeed I can see the issue happening as described, as well as that the proposed fix works.
I will pass it to the development team for check now, also I would recommend following ZBXNEXT-4929, as a similar issue is described there.

Best Regards,
Aleksandrs

Comment by Vasily Goncharenko (Inactive) [ 2019 Jun 19 ]

Fixed in development branch feature/ZBX-16280-4.0

Comment by Vasily Goncharenko (Inactive) [ 2019 Jul 02 ]

Fixed in:

  • 4.0.11rc1 afabec34af5
  • 4.2.5rc1 591e7f2f058
  • 4.4.0alpha1 (master) d363dd23013
Comment by Gil Comeau [ 2019 Jul 03 ]

Hey Vasily, is it possible to upgrade to  4.0.11rc1 from an RPM? I can't seem to find it...

Generated at Fri Apr 26 21:16:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.