-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.10.0, 7.2.0
-
Component/s: Content - Inline Comments
-
None
-
3
-
Severity 3 - Minor
Issue Summary
If a link macro has been defined and the display and target names are different(or empty) it is not possible to create inline comments on the words that have been used in the link display name.
Steps to Reproduce
- Create a new page
- Add random content and for this example make sure to add the words (Background, concepts)
- Add a link macro(insert link) in the following ways:
- use the "Advanced" option and add a link to a non-existing page. Set the link name to "Background concepts".
- link to an existing piece of content and alter the link name by adding spaces or additional words
- Publish the page
- Select the word "background" in the content that was created in step 2 and try to add an inline comment
Expected Results
The inline comment should be saved
Actual Results
The inline comment is not saved and the following message is displayed:
We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text.
The following error is shown in the browser developer tools:
Request URL: http://localhost:26123/c6123/rest/inlinecomments/1.0/comments Request Method: POST Status Code: 412
I have observed that a working link looks as follows:
<ac:link><ri:page ri:content-title="Validating elements and models" /></ac:link>
whereas a link causing this issue looks like the following two examples:
<ac:link><ri:page ri:space-key="EDD" ri:content-title="Background and concepts" /><ac:plain-text-link-body><![CDATA[Concepts]]></ac:plain-text-link-body></ac:link> <ac:link><ri:page ri:content-title="Creating the implementation model" /><ac:plain-text-link-body><![CDATA[creating the implementation model]]></ac:plain-text-link-body></ac:link>
The <ac:plain-text-link-body> attribute is only added when the link name and actual link reference is not the same.
Workaround
- Use the unlink option on the hyperlink effectively removing the link
- Ensure the link name and page content name is the same(again you might have to edit and save the affected page for the attribute to be removed)
- Select more than just the individual words when creating an inline comment
- mentioned in
-
Page Loading...