AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

url encoded ids in path #98

Closed nick-bir closed 1 year ago

nick-bir commented 1 year ago

If id contains symbols that require url encoding plugin doesn't process it correctly: With url encoding: GET my-index/_doc/slash%2Fid response: `{..., "_id": "slash%2Fid", "found": "false"}

Without url encoding: GET my-index/_doc/slash/id response: "error": "no handler found for uri [/my-index/_doc/slash/id] and method [GET]"

AntonShuvaev commented 1 year ago

Thanks for reporting the issue, will fix it in the next release.

AntonShuvaev commented 1 year ago

Fixed. Now you can use whitespaces in urls

nick-bir commented 1 year ago

Sorry, Anton, but I still can't use slashes in urls. I get the same error

AntonShuvaev commented 1 year ago

Sorry, I misunderstood the issue. I've fixed it now by disabling urlencoding the url, so you can use %2F in the url. You can download the version with the fix here: https://plugins.jetbrains.com/files/14512/306934/Elasticsearch-2023.1.3-223-signed.zip and install it manually or wait until it will be available in marketplace.

nick-bir commented 1 year ago

Just checked now - it works, thanks!