Skip to content

When checking if a view is allowed, having no session can result in errors #3781

@bmfmancini

Description

@bmfmancini

Hey Guys

I found the following errors when logging into a new 1.2.14 install
This was a clone of the 1.2.x branch this morning

2020/08/31  15:01:06 - CMDPHP PHP ERROR NOTICE Backtrace:   (/index.php[25]:include(), /include/auth.php[171]:require_once(),  /auth_login.php[669]:html_common_header(),  /lib/html.php[2381]:is_view_allowed(),  /lib/auth.php[617]:CactiErrorHandler())

2020/08/31 15:01:06 - ERROR PHP NOTICE: Undefined index:  sess_user_id in file: /var/www/html/cacti/lib/auth.php  on line: 617
2020/08/31 15:01:06 - CMDPHP PHP ERROR NOTICE Backtrace:   (/index.php[25]:include(), /include/auth.php[171]:require_once(),  /auth_login.php[669]:html_common_header(),  /lib/html.php[2381]:is_view_allowed(),  /lib/auth.php[603]:CactiErrorHandler())
2020/08/31 15:01:06 - ERROR PHP NOTICE: Undefined index:  sess_user_id in file: /var/www/html/cacti/lib/auth.php  on line: 603
root@cact1:/var/www/html/cacti# php -v
PHP 7.0.33-0ubuntu0.16.04.15 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33-0ubuntu0.16.04.15, Copyright (c) 1999-2017, by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions