meerkat-dashboard / meerkat

Drag-and-drop dashboards for Icinga
https://meerkat.run
GNU Affero General Public License v3.0
18 stars 2 forks source link

Cloning dashboards failed with error saying the original dashboard can't be open #207

Closed sol1-matt closed 1 year ago

sol1-matt commented 1 year ago

Describe the bug Cloning dashboards results in a error

create dashboard from dashboards/test01.json: create dashboard file: open dashboards/test01.json: permission denied

To Reproduce Steps to reproduce the behavior:

  1. Clone dashboard test01 to test02
  2. See error
sol1-matt commented 1 year ago

This isn't fixed in 3.0.4

sol1-matt commented 1 year ago

New problem with cloning.

The cloned filename is similar to the title (spaces replaced with dashes but case maintained) but meerkat is expecting an all lowercase version of the title.

Solution Clone should use the same function that sanitized the filename that create or rename does.