I am moving a project from JBOSS 6 EAP to Spring Boot. It looks like TextNode.getBinaryValue expects a Base64Encoded value but I am not sure how to bypass this. The issue occurs when there is an '' in the data in JsonNode. Can someone please help me wit this? Below is a mock code where I reproduced the issue. The JsonNode is dynamically generated an I will not be able to change this. All I need is the response to accept the '' and bypass the base64 encoding validation
@POST
@Consumes({ MediaType.TEXT_PLAIN })
@Produces({ MediaType.APPLICATION_JSON })
public Map<String,List<JsonNode>> echo(@NotEmpty String echoText) {
Map<String,List<JsonNode>> map = new HashMap<>();
List<JsonNode> jsonNodeList = new ArrayList<>();
ObjectMapper mapper = new ObjectMapper();
JsonNode val = mapper.convertValue("TEST_DATA", JsonNode.class);
jsonNodeList.add(val);
map.put("Test", jsonNodeList);
return map;
}
I am moving a project from JBOSS 6 EAP to Spring Boot. It looks like TextNode.getBinaryValue expects a Base64Encoded value but I am not sure how to bypass this. The issue occurs when there is an '' in the data in JsonNode. Can someone please help me wit this? Below is a mock code where I reproduced the issue. The JsonNode is dynamically generated an I will not be able to change this. All I need is the response to accept the '' and bypass the base64 encoding validation
Below is the trace