You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originated from #36988 . When using the high-level REST client to get/index/update documents, slashes in ids can cause problems. This has to do with the logic that encodes each url part separately and then puts the result together in RequestConverters. The following test fails while I think it should succeed. What I think happens at the moment is that the document gets indexed with a different id than the one provided.
This is how the id is received when the index request is sent via the HLRC: test.com/48923AQ3
The /sku/ is missing.
I think the problem is in the EndpointBuilder#encodePart(...) method in RequestCoverters.java line 1106. I think in the case that the pathPart starts with a / then it should not add extra leading slash.
This is a more targeted test:
EndpointBuilder endpointBuilder = new EndpointBuilder().addPathPart("/sku/test.com/48923AQ3");
assertEquals("/%2Fsku%2Ftest.com%2F48923AQ3", endpointBuilder.build());
This issue was originated from #36988 . When using the high-level REST client to get/index/update documents, slashes in ids can cause problems. This has to do with the logic that encodes each url part separately and then puts the result together in
RequestConverters
. The following test fails while I think it should succeed. What I think happens at the moment is that the document gets indexed with a different id than the one provided.The text was updated successfully, but these errors were encountered: