Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Links changed in Confluence document when updating via API

Matthew Casperson April 26, 2015

In Confluence 5.5.2 I have run into an issue where updating a page via the REST API is modifying some links.

The original document contains links that to point to something like http://localhost:8090/pages/viewpage.action?pageId=1234567, and were assigned to custom text like "I love icecream".

When I get the storage XML for this document and post it back without any modifications to these links the resulting page contains a link to the same destination document, but with the current title of the document instead of the custom text. So if the title of the document was "I love icecream and chocolate", the resulting page has the text "I love icecream and chocolate" instead of "I love icecream" in it despite the fact that I have made no changes to the link before sending it back to the Confluence REST API.

Is this a bug, or is there some way around this renaming of links?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2015

Source of the two different page-links just as an FYI, I don't have a solution:

<ac:link>
	<ri:page ri:content-title="Test Page"/>
</ac:link>
<ac:link>
	<ri:page ri:content-title="Test Page"/>
 	<ac:plain-text-link-body><![CDATA[Test]]></ac:plain-text-link-body>
</ac:link>
TAGS
AUG Leaders

Atlassian Community Events