question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReactiveElasticsearchOperations indexName twice endcoding

See original GitHub issue

this example request

public Mono<Void> example(Foo foo) {
   return reactiveElasticsearchOperations.save(foo, IndexCoordinates.of("<foo-{now/M{yyyy.MM}}>")).then()
}

webClient Request url

Expecting : /%3Cfoo-%7Bnow%2FM%7Byyyy.MM%7D%7D%3E/_doc

but : /%253Cfoo-%257Bnow%252FM%257Byyyy.MM%257D%257D%253E/_doc

elasticsearch error log reason=Invalid index name [%3Cfoo-%7Bnow%2FM%7Byyyy.MM%7D%7D%3E], must be lowercase]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sothawocommented, Jan 25, 2021

ok, I can reproduce that. That reactive client escapes the ‘%’ with ‘%25’. This does not happen in the non-reactive part.

0reactions
wonwoocommented, Jan 26, 2021

@sothawo good! Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Data Elasticsearch - Reference Documentation
ReactiveElasticsearchOperations lets you save, find and delete your domain objects and map those objects to documents stored in Elasticsearch.
Read more >
Index (Spring Data Elasticsearch 4.0.6.RELEASE API)
Execute within a ReactiveElasticsearchOperations.ClientCallback managing resources ... Immutable Value object encapsulating index name(s) and index type(s).
Read more >
Springboot : Prevent double encoding of % by Resttemplate
How can I send this request without double encoding the URL? Already tried using UriComponentsBuilder Avoid Double Encoding of URL query param ...
Read more >
Spring Data Elasticsearch - 官方文档
indexName : the name of the index to store this entity in ... These are ElasticsearchOperations and ReactiveElasticsearchOperations .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found