This issue has been created
There are 2 updates.
 
 
Confluence / cid:jira-generated-image-avatar-8148aa1d-b5b1-423e-bdfd-87bc59df0224 CONFLUENCE-452 Open

Labels are lost during conversion for reference tags following a macro parameter with a reference tag in it

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-167b05aa-01d1-4789-9ce3-f92b516610c9 Raphaël Jakse created this issue on 13/May/25 14:35
 
Summary: Labels are lost during conversion for reference tags following a macro parameter with a reference tag in it
Issue Type: cid:jira-generated-image-avatar-8148aa1d-b5b1-423e-bdfd-87bc59df0224 Bug
Affects Versions: 9.83.1
Assignee: Unassigned
Components: Syntax - XHTML
Created: 13/May/25 14:35
Priority: cid:jira-generated-image-static-major-11ac2cfc-f989-4de0-8071-08572f89fab5 Major
Reporter: Raphaël Jakse
Description:

When a reference tag (<a>) is used in a macro parameter, setAccumulateContent(true) is called. This remains active for all the reference tags following this macro parameter and this eats labels for links specified using <a> tags appearing after this label.

 
 

2 updates

 
cid:jira-generated-image-avatar-167b05aa-01d1-4789-9ce3-f92b516610c9 Changes by Raphaël Jakse on 13/May/25 14:36
 
Description: When a reference tag (<a>) is used in a macro parameter, setAccumulateContent(true) is called. This remains active for all the reference tags following this macro parameter and this eats labels for links specified using <a> tags appearing after this label.

For instance, for a page containing:

{code}
<a href="http://url">label1</a>
<ac:structured-macro ac:name="somemacro"><ac:parameter name="url"><a href="http://perdu.com">Perdu</a></ac:parameter></ac:structured-macro>
<a href="http://url">label2</a>
{code}

label1 will be migrated, but label2 will be lost.

This is a case where a global state exists without us noticing.
Assignee: Raphaël Jakse