Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a new user or user group may cause errors #4701

Closed
paulgevers opened this issue Apr 12, 2022 · 4 comments
Closed

Editing a new user or user group may cause errors #4701

paulgevers opened this issue Apr 12, 2022 · 4 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue

Comments

@paulgevers
Copy link
Contributor

Describe the bug

With some minor modifications (password, more tests, see Debian patch) I run the tests/tools/check_all_pages.sh test. I changed one output and added one (will file an MR tomorrow), but then I still get errors.

ERROR: Fail - Unexpected output in /usr/share/cacti/site/log/cacti.log:
2022-04-12 20:14:57 - ERROR PHP WARNING: Undefined variable $group in file: /usr/share/cacti/site/user_group_admin.php  on line: 1769
2022-04-12 20:14:57 - CMDPHP PHP ERROR WARNING Backtrace:  (/user_group_admin.php[165]:group_edit(), /user_group_admin.php[1769]:CactiErrorHandler())
2022-04-12 20:14:57 - ERROR PHP WARNING: Trying to access array offset on value of type null in file: /usr/share/cacti/site/user_group_admin.php  on line: 1769
2022-04-12 20:14:57 - CMDPHP PHP ERROR WARNING Backtrace:  (/user_group_admin.php[165]:group_edit(), /user_group_admin.php[1769]:CactiErrorHandler())

Expected behavior

Test passes.

Desktop (please complete the following information)

  • OS: Debian

  • Browser: wget

  • Version:

Additional context

I judged this to not be Debian specific, but if so just tell me and close the bug.

@paulgevers paulgevers added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 12, 2022
@TheWitness
Copy link
Member

Thanks for the ticket Paul. We need travis back or to move to Github Actions here. We modified your check all pages to work with Travis, and then they cut off access even though we were in the OSS contingent.

@TheWitness TheWitness changed the title [1.2.20] tests/tools/check_all_pages.sh in Debian reports issues Editing a new user or user group results in Cacti error log entries Apr 12, 2022
@TheWitness
Copy link
Member

@paulgevers, should be fixed now. Please retest.

@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Apr 12, 2022
@paulgevers
Copy link
Contributor Author

Commit 8f0b55e fixed the issue for me.

(Had a bit of trouble finding it because its message mentions a different bug number).

@TheWitness
Copy link
Member

Yea, sorry, I seem to be rushing this a bit. Summer is getting closer and I'm itching to get out on the bike.

@netniV netniV changed the title Editing a new user or user group results in Cacti error log entries Editing a new user or user group may cause errors May 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants