Page 1 of 1

Unable to delete Maintenance repository with slash in name

Posted: Fri Oct 01, 2021 12:33 pm
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"?

Re: Unable to delete Maintenance repository with slash in na

Posted: Mon Oct 04, 2021 1:02 pm
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.

Re: Unable to delete Maintenance repository with slash in na

Posted: Wed Oct 06, 2021 2:39 pm
by mlabbepg
That worked.

Thanks.

Re: Unable to delete Maintenance repository with slash in na

Posted: Thu Oct 07, 2021 3:42 pm
by ssax
That's great to hear, are we okay to lock the topic and mark it as resolved?

Re: Unable to delete Maintenance repository with slash in na

Posted: Thu Oct 07, 2021 3:45 pm
by mlabbepg
Yes. Thanks.