Getting health status fails for non system users

Description

I'm using Hibernate Search ORM with Elastic Search on http://www.euregjug.eu.

After upgrading from 5.6 beta to 5.8 (see https://github.com/EuregJUG-Maas-Rhine/site/commit/70099d231f05810376fd8f86783b75fd01a6b11c), the application fails to start because it cannot get the health for the index from the http://www.searchly.com elastic search instance.

It tries to retrieve "/_cluster/health/eu.euregjug.site.posts.postentity/" which fails:

The problem here is the forward slash at the end of the index name. If I remove that and CURL the full URL including the same username I configured for Hibernate Search, it works.

As I use the auto generated index name, there's a little I can do as an end developer here.

Environment

None

Activity

Show:
Michael Simons
September 17, 2017, 2:25 PM

Thank you Sanne! Wasn't quite sure if that had been on purpose, otherwise I'd have sent a PR.

Sanne Grinovero
September 17, 2017, 1:54 PM

Thanks ! We'll get this fixed ASAP.

Michael Simons
September 15, 2017, 4:18 PM

Probably that one needs something that checks if it's the last element of a path https://github.com/hibernate/hibernate-search/blob/master/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/ElasticsearchRequest.java#L85. Most often it doesn't make a big difference, but /foo/bar is technically a different thing than /foo/bar/.

Fixed

Assignee

Sanne Grinovero

Reporter

Michael Simons