Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
12.4
-
None
-
Debian 10, PostgreSQL 11.7, Jetty 9
-
Unknown
-
Description
Choosing English (Europe) as locale causes an error and a page can't be created.
In the database xwiki the column xwd_default_language of the table xwikidoc is defined as varying(5)/varchar(5). The base locale ID of the locale English (Europe) is en_150 thus contains 6 characters. Therefore the base locale id can't be written into the database table and causes an error.
PostgreSQL log:
2020-06-03 20:35:43.846 CEST [16957] xwiki@xwiki ERROR: value too long for type character varying(5)
2020-06-03 20:35:43.846 CEST [16957] xwiki@xwiki STATEMENT: update xwikidoc set XWD_FULLNAME=$1, XWD_NAME=$2, XWD_TITLE=$3, XWD_LANGUAGE=$4, XWD_DEFAULT_LANGUAGE=$5, XWD_TRANSLATION=$6, XWD_DATE=$7, XWD_CONTENT_UPDATE_DATE=$8, XWD_CREATION_DATE=$9, XWD_AUTHOR=$10, XWD_CONTENT_AUTHOR=$11, XWD_CREATOR=$12, XWD_WEB=$13, XWD_CONTENT=$14, XWD_VERSION=$15, XWD_CUSTOM_CLASS=$16, XWD_PARENT=$17, XWD_CLASS_XML=$18, XWD_ELEMENTS=$19, XWD_DEFAULT_TEMPLATE=$20, XWD_VALIDATION_SCRIPT=$21, XWD_COMMENT=$22, XWD_MINOREDIT=$23, XWD_SYNTAX_ID=$24, XWD_HIDDEN=$25 where XWD_ID=$26