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.

Hi Andy,

I’ve never heard about this problem indeed.

I could find Loading... which indeed mentions cookies.

I’ve now added a troubleshooting doc at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HRequestheaderistoolarge

Thx for posting!

Thanks for following up - and happy new year!
Yes it’s an unusual scenario - as mentioned we’re sharing the domain with a site which stores quite a lot of data in cookies. The documentation note you added should be useful in case anyone else hits this.

Thx, a happy new year to you too!