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
Cannot get template name populated through deserializer
How can one reproduce the bug?
final JsonpMapper mapper = openSearchClient._transport().jsonpMapper();
final JsonpMapper mapper1 = new PreSerializedJsonpMapper();
final Map<String, Object> indexTemplateMap = readIndexTemplate();
indexTemplateMap.put("name", "test-template");
indexTemplateMap.put("index_patterns", "test-index-*");
final String indexTemplate = new ObjectMapper().writeValueAsString(indexTemplateMap);
// Parse byte array to Map
final ByteArrayInputStream byteIn = new ByteArrayInputStream(indexTemplate.getBytes(StandardCharsets.UTF_8));
final JsonParser parser = mapper1.jsonProvider().createParser(byteIn);
final PutTemplateRequest putTemplateRequest = PutTemplateRequest._DESERIALIZER.deserialize(parser, mapper1);
What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered:
What is the bug?
Cannot get template name populated through deserializer
How can one reproduce the bug?
final JsonpMapper mapper = openSearchClient._transport().jsonpMapper();
final JsonpMapper mapper1 = new PreSerializedJsonpMapper();
final Map<String, Object> indexTemplateMap = readIndexTemplate();
indexTemplateMap.put("name", "test-template");
indexTemplateMap.put("index_patterns", "test-index-*");
final String indexTemplate = new ObjectMapper().writeValueAsString(indexTemplateMap);
// Parse byte array to Map
final ByteArrayInputStream byteIn = new ByteArrayInputStream(indexTemplate.getBytes(StandardCharsets.UTF_8));
final JsonParser parser = mapper1.jsonProvider().createParser(byteIn);
final PutTemplateRequest putTemplateRequest = PutTemplateRequest._DESERIALIZER.deserialize(parser, mapper1);
What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: