Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 581608

Summary: GroupModel persistence breaks with special characters in group name
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: CoreAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.5   
Target Milestone: 2.1.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200224
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=767ece5de4a2b3c25dc31cf49ea3370118cdaf38
Whiteboard:

Description Dirk Fauth CLA 2023-02-28 04:07:34 EST
If a user creates a group dynamically with the performance column/row grouping, and adds a special character like '=' or '|' in the group name, the persistence breaks. On load these two characters have a special meaning in the parsing process. The '|' (pipe) is used as separator between groups, the '=' (equals) is used as separator between name and group configuration.

On save the pipe needs to be replaced with a special character replacement, similar to what is done in the FilterRowDataProvider, for the equals character the solution should be to use the last index of the equals character, as there are no further occurences afterwards.
Comment 1 Eclipse Genie CLA 2023-02-28 04:10:22 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200224
Comment 3 Dirk Fauth CLA 2023-03-31 03:44:35 EDT
Fixed with 2.1.0