Bug 580578 - AbstractConfluenceDelimitedBlock returns local line offset and not the offset in context of the whole line.
Summary: AbstractConfluenceDelimitedBlock returns local line offset and not the offset...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 critical (vote)
Target Milestone: 3.0.43   Edit
Assignee: Bronwyn Damm CLA
QA Contact: Leo Dos Santos CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2022-08-18 17:28 EDT by Bronwyn Damm CLA
Modified: 2022-09-13 16:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bronwyn Damm CLA 2022-08-18 17:28:12 EDT
This is surfaced when the contained block does not process the whole line. This came up for us when there was a QuoteBlock containing a TableBlock which contained ListBlocks in each of the cells. 
This causes the code to constantly reprocess the same cell of the table since while the table processed 2 characters of the line (before figuring out there is a list), those characters are not the first two characters of the line, they are for the second cell on the line, but we start back at the front of the line.

Example confluence text causing the infinite loop:


{quote}Hi Team.

Here is the table,

||*Column 1*||*Column 2*||*Column 3*||
| * Bullet 1 (repeats infinitely)| * Bullet 2| * Bullet 3|
| * Bullet 4| * Bullet 5| * Bullet 6|

Thank you
{quote}

This will require a minor fix to the aforementioned class to return the proper offset.
Comment 1 Eclipse Genie CLA 2022-09-06 16:23:18 EDT
New Gerrit change created: https://git.eclipse.org/r/c/mylyn/org.eclipse.mylyn.docs/+/195606