Skip to content

Deleting a damaged graph can sometimes led to removal of valid graphs too #4126

Description

@TheWitness

Describe the bug

In certain cases, where for example, you database has been corrupted due to a bug, it is possible to create a graph with a graph id of 0. When you go to delete that corrupt graph, you also delete all your Graph Templates.

To Reproduce

Create a graph manually with a id in the graph_local table of 0, then delete it.

Expected behavior

Cacti should remove the local graph id, but not any templates.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockerBlocking releasebugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions