Skip to content

Changes to JavaScript's Storage API cause exceptions to be thrown #3507

@TheWitness

Description

@TheWitness

Describe the bug

The most recent Storages API JavaScript library changes the way it handled unset storage location that instead of returning silently, it throws an error. Cacti does not check if a storage location is set, and this therefore generates errors.

To Reproduce

To reproduce, do the following

  1. Clear all your local storage in Cacti

  2. Turn on the Debug Console

  3. Navigate to the index.php page

  4. See error

Expected behavior

Cacti should not throw exceptions even when an API changes it behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions