nagvis icon indicating copy to clipboard operation
nagvis copied to clipboard

Problem with users after updating from 1.9.11 >> 1.9.13

Open T100D opened this issue 4 years ago • 9 comments

After Updating to 1.9.13 we have problems with guests. Only the admin user can view all the pages and rotations, and the guest and other users can only login, but can't view any page or rotations, the page stays blank in IE

In chrome the rotation starts but on every page the error "You are not permitted to access this page (General/getContextTemplate/)." or "You are not permitted to access this page (General/getHoverTemplate/)." is displayed.

Nagvis 1.9.13 php 5.6.40

Backend nagios/check_mk

T100D avatar Jul 11 '19 11:07 T100D

After reverting to 1.9.11 and updating to 1.9.12 the problem is not there. We will be trying 1.9.13 later.

T100D avatar Jul 12 '19 12:07 T100D

Today we tried updating from 1.9.12 >> 1.9.13.

The problem stil remains onliy the admin user is able to view pages, and other users are not.

T100D avatar Jul 15 '19 12:07 T100D

I can not reproduce an issue here. I can also not find a related change between 1.9.12 and 1.9.13.

The problem may be related to your user/role settings (which are stored in etc/nagvis/auth.db file). Are your guest users permitted to view maps and is the guest role assigned to the user in question?

LarsMichelsen avatar Jul 17 '19 19:07 LarsMichelsen

Hi Lars,

The users are permitted to see the maps and rotations, the can even select them, but it delivers an empty page. The Guest user has the role Guests Under the account where the can login.

These are the role and permission in 1.9.12.

User roles: [{"roleId":"3","name":"Guests"}]

User permissions:

{"Overview":{"view":{"":[]}},"General":{"":{"":[]}},"User":{"setOption":{"":[]}},"Multisite":{"getMaps":{"":[]}},"Search":{"view":{"":[]}},"Auth":{"logout":{"":[]}},"Map":{"view":{"":[],"SRK-MRCC":[],"SRK_Functional":[],"MRCC":[],"Centrale_Vlissingen":[],"Centrale_Zeebrugge":[],"Centrale_Terneuzen":[],"Centrale_Hansweert":[],"Centrale_Zandvliet":[],"Radar_Oostdijckbank":[],"Radar_Westkapelle":[],"Radar_Kruisschans":[],"Radar_Oostende":[],"Brug_Zelzate":[],"Belwind":[],"Gent_L9":[],"Radar_Ballastplaat":[],"Sluis_Wintam":[],"Radar_Vlissingen":[],"MIK_Zeebrugge":[],"Koksijde":[],"Radar_Kaapduinen":[],"Tech_Counters-IVS":[],"Wemeldinge":[],"Radar_Bruinisse":[],"Radar_Zandkreek":[],"Radar_Stavenisse":[],"Radar_Postbrug":[],"Simulator_Kallo":[],"Radar_Vlakebrug":[],"Radar_ZijpeZijde":[],"Radar_Ouddorp":[]}},"Rotation":{"view":{"":[],"Centrales":[],"srk":[]}},"Url":{"view":{"":[]}}}

What we do see is that the default Guest has the roles Users (read-only) and Guests, but changing this and updating nagvis does not solve the problem.

apache acces_log (no problem here): 10.64.91.188 - XXX [18/Jul/2019:15:30:09 +0200] "GET /nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=Haven_Gent HTTP/1.1" 200 26899 "http://10.64.91.10/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=Worldmap" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" 128632

In php.ini we configured date.time and in chrome the chrome browser now shows the pages, but in IE and our display presenting the website the problem is still there.

Further investigation shows Firefox, Chrome & Edge can show the maps and rotations, our display and IE (11 )can't show it after the update, so it appears to be browser related.

Could this be related to some underlying NagVisCompressed.js or anything related. Page code is not much different between the releases?

T100D avatar Jul 18 '19 14:07 T100D

The problem persists in 1.9.14 :-(

chrome - okay IE 11 - not okay (no views) firefox - okay flat tv - not okay (no views)

T100D avatar Sep 09 '19 13:09 T100D

Version 1.9.12

afbeelding

Errors in Version 1.9.14 in IE:

afbeelding

NagVisCompressed.js 4631,23 (one of the files changed) afbeelding

T100D avatar Sep 09 '19 14:09 T100D

Hi,

Yes, I guess root cause are the same!!!

I've posted this issue also here: https://monitoring-portal.org/t/invalid-char-in-nagviscompressed-js/6617/4

A workaround is suggested already, but would be better to fix it in next version v1.9.15 ;-)

gabortakacs78 avatar Sep 11 '19 06:09 gabortakacs78

With version 1.9.15 The IE problems are solved, but our Samsung DM48D with hospitality browser ain't able to show nagvis content anymore. It's not possible to troubleshoot the problem and ther isn't a software update for the screen :-(

apche acces_log client ID: Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV+2014; Maple2012) AppleWebKit/537.42+ (KHTML, like Gecko) SmartTV Safari/537.42+

T100D avatar Oct 23 '19 13:10 T100D

Debugging in Firefox 69 leads to the following statement:

Synchrone XMLHttpRequest op de hoofdthread wordt niet meer ondersteund vanwege de nadelige effecten op de eindgebruikerservaring. Zie http://xhr.spec.whatwg.org/ voor meer informatie NagVisCompressed.js:1943:5

Line 1945:5

  AJAX.open(args.method, url, !args.sync);

T100D avatar Oct 23 '19 13:10 T100D