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

When using API calls, graphs without data sources may be unremovable #4512

Closed
TheWitness opened this issue Dec 21, 2021 · 0 comments
Closed
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@TheWitness
Copy link
Member

Describe the bug

When using the Cacti Graph API, if you encounter a Graph that has not Data Sources, it can not be removed using the standard API call.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Graph using a Template

  2. Hack the Database to remove the Data Sources

  3. Attempt to use the Cacti Graph API to remove the Graphs

  4. Graphs will not be removed

Expected behavior

The Cacti API should recognize the "error" conditions and handle them properly. It's a corner case, but it can and does happen from time to time when a database has become damaged from a system crash during automation for example.

@TheWitness TheWitness added the bug Undesired behaviour label Dec 21, 2021
@TheWitness TheWitness added this to the v1.2.20 milestone Dec 21, 2021
TheWitness added a commit that referenced this issue Dec 21, 2021
The Cacti API can not remove a Graph that has no Data Sources
@TheWitness TheWitness added the resolved A fixed issue label Dec 21, 2021
@netniV netniV changed the title The Cacti API can not remove a Graph that has no Data Sources When using API calls, a graph without sources mat be unremovable Apr 3, 2022
@netniV netniV changed the title When using API calls, a graph without sources mat be unremovable When using API calls, a graph without data sources may be unremovable Apr 3, 2022
@netniV netniV changed the title When using API calls, a graph without data sources may be unremovable When using API calls, graphs without data sources may be unremovable Apr 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
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

1 participant