There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1b1d798f-c6f2-41f0-b6aa-b10de55a8291 XWIKI-23463 Open

Errors with DocumentTreeMacroIT with Mysql UTF-8

 
View issue   ยท   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-8df95ffc-c7f0-4db8-b170-07c2b9ad670b Changes by Manuel Leduc on 21/Aug/25 13:53
 
Description: The problem is exposed through the integration tests of DocumentTreeMacroIT when using Mysql LTS UTF-8 with the following command:
{noformat}
xwiki-platform-index-test/xwiki-platform-index-test-docker$ mvn clean install -Dit.test=DocumentTreeMacroIT -Dxwiki.test.ui.database=mysql -Dxwiki.test.ui.databaseTag=lts -Dxwiki.test.ui.database.commands.character-set-server=utf8 -Dxwiki.test.ui.database.commands.collation-server=utf8_bin
{noformat}

It's probably a regression since 17.6.0: there's no failures when executing tests on 17.5.0.


The root cause is https://github.com/xwiki/xwiki-platform/commit/e657333c558e1beb6cfd82022d4a562bbb971023#diff-17bd9d91dce821d366ef166b8371dbadefaf1bf352ef1e5451ef85ca78616952R47 which sets the collation to {{utf8mb4_german2_ci}} instead of {{utf8mb3_german2_ci}} when the db collation is {{utf8mb3}} (e.g., when running docker-al)
Component: Index
Component: Development Issues only