Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
This repository was archived by the owner on May 5, 2021. It is now read-only.

Forward slash in folder name breaks export #169

@sciurus

Description

@sciurus

In Grafana, I created a folder name Test / Folder. Inside that folder I created a dashboard named A Test Dashboard.

The dashboard fails to export with the error

✘ Dashboard a-test-dashboard import failed: Error: ENOENT: no such file or directory, mkdir 'dashboards/Test / Folder'

I tried creating a dashboard with name Test / Dashboard in the General folder and it was successfully exported as test-dashboard.

It looks like

return fileNameWithExtension.replace(/\.[^/.]+$/, '');
is used to sanitize the names of files but not of directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions