Unable to delete Maintenance repository with slash in name

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Unable to delete Maintenance repository with slash in name

Post by mlabbepg »

In Snapshot & Maintenance, any repository created with a slash in Name (e.g. /data or blah/foo) can't be deleted using the [Delete] button.

Reproduced on a fresh install of 2.1.9, Ubuntu 20 LTS.

Is there another way to delete it manually from "under the hood"?
User avatar
kfanselow
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm

Re: Unable to delete Maintenance repository with slash in na

Post by kfanselow »

Hi mlabbepg,

Try deleting them through the API and substituting the hex value (%2F) for the /.

e.g.

Code: Select all

curl -ik -XDELETE 'http://localhost:9200/_snapshot/blah%2Ffoo'
It make take a few moments for the change to be reflected in the GUI.
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Re: Unable to delete Maintenance repository with slash in na

Post by mlabbepg »

That worked.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to delete Maintenance repository with slash in na

Post by ssax »

That's great to hear, are we okay to lock the topic and mark it as resolved?
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Re: Unable to delete Maintenance repository with slash in na

Post by mlabbepg »

Yes. Thanks.
Locked