elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

PathTrie wrongly adds params

Open wy96f opened this issue 12 years ago • 4 comments

For instance, PathTrie builds two tries: "/a/{x}/b", "/{y}/c/d". While retrieving "/a/c/d", it breaks for the params are {x=c, y=a} instead of {y=a}. We should push params before retrieving next token and pop them if we have to use wildcard to retrieve again.

wy96f avatar Oct 14 '14 03:10 wy96f

Hi @wy96f I would like to understand more about the actual usecase here. I would be curious to know what made you find this problem for instance, is this something that happens with some of the standard REST endpoints, or was this triggered by a plugin that registers custom ones?

javanna avatar Dec 08 '14 12:12 javanna

Hi @javanna Found this while reading the code:)

wy96f avatar Dec 09 '14 13:12 wy96f

Is this causing any actual bugs in Elasticsearch today? That is, are there any situations today where this issue causes Elasticsearch to do something unexpected or wrong? If there isn't a bug today, are there any situations where this issue could lead to a bug in Elasticsearch?

jasontedor avatar Dec 19 '15 16:12 jasontedor

No further feedback. Closing

clintongormley avatar Mar 08 '16 18:03 clintongormley