[ZBX-13044] Error message on all pages Created: 2017 Nov 15  Updated: 2024 Apr 10  Resolved: 2017 Nov 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.4
Fix Version/s: 2.2.21rc1, 3.0.14rc1, 3.2.11rc1, 3.4.5rc1, 4.0.0alpha1, 4.0 (plan)

Type: Incident report Priority: Minor
Reporter: Erik Botta Assignee: Miks Kronkalns
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Snímek obrazovky 2017-11-15 v 18.45.03.png    
Issue Links:
Causes
Team: Team A
Sprint: Sprint 21
Story Points: 0.2

 Description   

Steps to reproduce:
Upgrade from 3.2.x to 3.4.4

Result:
See screenshot
Expected:
No errors?



 Comments   
Comment by Erik Botta [ 2017 Nov 15 ]

Problem is a condition check:

if ((array_key_exists('https', $_SERVER) && ($_SERVER['https'] == 1 || $_SERVER['https'] === 'on'))
		|| $_SERVER['SERVER_PORT'] == 443) {

$_SERVER['SERVER_PORT'] doesn't exist in this case.

Comment by Miks Kronkalns [ 2017 Nov 16 ]

Hello erikbotta! Please could you give us some details about environment under which you run Zabbix frontend? What server do you use (Apache, IIS, nginx)? Do you host Zabbix frontend in some cloud platform (like Google App Engine or AWS)? Do you have some custom configuration that could disable server port to be accessible by Zabbix? Maybe anything else specific?

Comment by Jan Garaj [ 2017 Nov 19 ]

Nginx. It was OK before 3.4.4 - https://github.com/monitoringartist/dockbix-xxl/issues/102

Comment by Nathan Neulinger [ 2017 Nov 21 ]

Was this fixed, or just closed?

Comment by Nathan Neulinger [ 2017 Nov 21 ]

It looks like the fix should be trivial in both cases - just add another array_key_exists for SERVER_PORT before the 443 check.

Comment by Alexander Vladishev [ 2017 Nov 23 ]

Successfully tested.

Comment by Miks Kronkalns [ 2017 Nov 24 ]

Fixed:

  • 2.2.21rc1 r74974
  • 3.0.14rc1 r74975
  • 3.2.11rc1 r74976
  • 3.4.5rc1 r74977
  • 4.0.0alpha1 (trunk) r74979
Generated at Thu Apr 25 03:15:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.