Hello! I have a question regarding the Confluence REST endpoints. I want to use a REST endpoint from Confluence that allows me to retrieve the ID of a content by providing the space key, title and type of that content. The request I am doing looks like this:
URI uri = UriComponentsBuilder.fromPath("/rest/api/content") .queryParam("type", contentType) .queryParam("spaceKey", spaceKey) .queryParam("title", contentTitle) .build().toUri(); atlassianHostRestClients.authenticatedAsAddon().getForObject(uri, Object.class);
Whenever ‘contentTitle’ contains non-ASCII characters like German umlauts or the euro sign the request will be answered with 400 - Bad Request (without any additional information).
The same request works fine when I try it in the browser.
I am using Spring Boot Atlassian Connect framework.
This problem happens if I use “rest/api/content/search?cql” endpoint as well. Has anyone of you experienced a similar issue to that one? Is it a workaround for that?
Thank you in advance!