Docker XWiki tomcat - header size too small for translations

Had a strange problem that I managed to resolve (and surprised noone else has seen it as it’s out-of-the-box).

I’m wondering if I should put in a PR, or update some documentation - any suggestions?

using xwiki 16.4 postgres-tomcat

Whenever a LiveData table is shown it shows the pagination text untranslated:

literally
“livedata.pagination.currentEntries”, “livedata.pagination.pageSize” and “livedata.pagination.page”

This is on standard adminstration pages (e.g. user list), not on our own custom items.

This was caused by the tomcat default maxHttpHeaderSize of 8192 bytes.
The translation resource request bundles all of the keys in the get parameters, and for translations this exceeds the header size.

I’m hosting on a domain that shares cookies with another site, so maybe that’s why the size is exceeded.

Setting a larger maxHttpHeaderSize (32KB in this case) resolves the issue.