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

Menu selection does not always match selected page/section #2591

Closed
yingbaiibm opened this issue Apr 1, 2019 · 6 comments
Closed

Menu selection does not always match selected page/section #2591

yingbaiibm opened this issue Apr 1, 2019 · 6 comments
Labels
bug Undesired behaviour resolved A fixed issue

Comments

@yingbaiibm
Copy link

To Reproduce
Steps to reproduce the behavior:

  1. Go to Utilitites -System utilitites page
  2. Click SNMP Notification Receivers, drill down to other page
  3. Page show under RTM License Services - Managers -- failed

Screenshots
Screen Shot 2019-03-26 at 4 28 50 PM
Screen Shot 2019-03-26 at 4 29 06 PM

Desktop (please complete the following information):

  • OS: rhel73 x64
  • Browser: FF
  • Version :cacti1.2.2
@netniV
Copy link
Member

netniV commented Apr 1, 2019

This is due to another page having the same filename and the way that the menu structure works. It also occurred for #2430 but in your case, this is a third party plugin that is messing it up.

@TheWitness
Copy link
Member

TheWitness commented Apr 1, 2019

@yingbaiibm, suggest you rename the license managers file to lic_managers.php. Since this a third party plugin issue, I'll close.

@yingbaiibm
Copy link
Author

@TheWitness @netniV it is actually the lic_managers.php we are using now. When drill down to SNMP notification receivers, it replace our lic_managers.php URL and show mangers.php. We are not using the name managers.php

The point is when drill down to other link like view_snmpagent_cache, the URL will change to http://IP/cacti/utilities.php**?action=view_snmpagent_cache**

But when drill down to SNMP notification receivers, it goes to http://IP/**cacti/managers.php**. What I thought it should be also like above http://IP/cacti/utilities.php**?action=xxxx**. Then this problem will not happen.

@netniV
Copy link
Member

netniV commented Apr 2, 2019

This sounds like you have a URL problem going to the old address and the old managers.php file is still around?

@ddb4github
Copy link
Contributor

ddb4github commented Apr 2, 2019

Current behavior is:
1. Access "System Utilities -> SNMP notification receivers"
2. cacti/utilities.php auto-forward to cacti/managers.php
3. During ajax loading-page, auto-fuzzy-match to cacti/plugins/*/*_managers.php, and auto-expend to that menu item.

Force reload browser with cacti/managers.php by key#F5, non-auto-expand.

@yingbaiibm
Copy link
Author

@TheWitness @ddb4github can you open and fix this issue ?

@TheWitness TheWitness reopened this Apr 22, 2019
cigamit added a commit that referenced this issue Apr 23, 2019
Drill down to some pages may be incorrect due to logic issues
@cigamit cigamit changed the title Drill down to SNMP Notification Receivers page incorrect Drill down to some pages may be incorrect due to logic issues Apr 23, 2019
@cigamit cigamit added bug Undesired behaviour resolved A fixed issue labels Apr 23, 2019
cigamit added a commit that referenced this issue Apr 23, 2019
Second case that needs additional check
@cigamit cigamit closed this as completed Apr 25, 2019
@netniV netniV changed the title Drill down to some pages may be incorrect due to logic issues Menu selection does not always match selected page/section Apr 28, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

5 participants