cars10 / elasticvue

Elasticsearch gui for the browser
https://elasticvue.com
MIT License
1.86k stars 147 forks source link

[BUG] - special characters like % in index name don't work #221

Closed marcohald closed 4 months ago

marcohald commented 8 months ago

Description Indices like "filebeat-8.10.2-%{[customer]}-merged4-2024.99" could not be opened or deleted The Browser send a request like this when i click on the Index in the Indices tab http://localhost:9200/filebeat-8.10.2-%%7B[customer]%7D-merged4-2024.99/_search Elasticsearch answers with a 404 and this reason : "no such index [filebeat-8.10.2-%7B[customer]}-merged4-2024.99]" The Problem seems to be the % is not encoded but elasticsearch seems to need that to be encoded When I manually request it like that http://localhost:9200/filebeat-8.10.2-%25%7B[customer]%7D-merged4-2024.99/_search it works

Steps To Reproduce List the steps to reproduce your problem:

  1. Create a index called "filebeat-8.10.2-%{[customer]}-merged4-2024.99"
  2. Open elasticvue
  3. Click on indices and then on the index named "filebeat-8.10.2-%{[customer]}-merged4-2024.99"

Environment (please include the following information):

cars10 commented 6 months ago

Hey, i am not able to even create an index with a name like that in any version of elasticsearch. Can you provide details on how to reproduce this?

BlindB0 commented 5 months ago

Face the same problem. I have index with "-%y-%m-%d" in name. Fluentd made this by misconfig a long ago and I have to deal with it. So I can push api requests with curl by "index-%25y-%25m-%25d" in url (substitute '%' by '%25'), but elasticvue cannot handle this index.

cars10 commented 4 months ago

Fixed in 1.0.9