This issue has been created
There are 2 updates.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-7f6bd682-e46c-402f-ac81-baf4bf3af204 XRENDERING-786 Open

Under some conditions, table characters ("|" and "!!") are not escaped at the beginning of a line in cells

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-89028c58-c184-4e32-94ff-87c57e9a6917 Raphaël Jakse created this issue on 14/May/25 14:30
 
Summary: Under some conditions, table characters ("|" and "!!") are not escaped at the begining of a line in cells
Issue Type: cid:jira-generated-image-avatar-7f6bd682-e46c-402f-ac81-baf4bf3af204 Bug
Affects Versions: 16.10.8, 17.3.0
Assignee: Unassigned
Components: Syntax - xwiki/2.1
Created: 14/May/25 14:30
Priority: cid:jira-generated-image-static-major-742d2b0f-39fe-4a71-8dfb-26dae45b46c8 Major
Reporter: Raphaël Jakse
Description:

The following sequence of events:

beginDocument
beginTable
beginTableRow
beginTableCell
beginGroup
beginParagraph
beginFormat [NONE] [[style]=[color: rgb(6,125,23);]]
onWord [hello]
onNewLine
endFormat [NONE] [[style]=[color: rgb(6,125,23);]]
onSpecialSymbol [!]
onSpecialSymbol [!]
onSpecialSymbol [!]
onSpecialSymbol [!]
onSpace
onWord [same]
onSpace
onWord [cell]
endParagraph
endGroup
endTableCell
endTableRow
endTable
endDocument

Produced with the following Confluence XHTML syntax:

<table>
<tr><td><span style="color: rgb(6,125,23);">hello<br /></span>!!!! same cell</td></tr>
</table> 

Leads to the following erroneous XWiki syntax:

|(((
(% style="color: rgb(6,125,23);" %)hello
(%%)!!!! same cell
))) 

It is erroneous because the first pair of ! are not escaped.

Same goes for pipe characters (replacing !! with |)

This incorrectly produces a table inside the table, instead of showing the eclamation marks or the pipe characters.

 
 

2 updates

 
cid:jira-generated-image-avatar-56ca30ec-5f27-4a37-b7a7-d181162d806c Changes by Michael Hamann on 14/May/25 14:32
 
Assignee: Michael Hamann
 
cid:jira-generated-image-avatar-89028c58-c184-4e32-94ff-87c57e9a6917 Changes by Raphaël Jakse on 14/May/25 14:33
 
Summary: Under some conditions, table characters ("|" and "!!") are not escaped at the begining beginning of a line in cells