Skip to content

Issue with locale when language is not set #4476

@HenrikJannsen

Description

@HenrikJannsen

On a VPS server I got those results with locale:

LANG=C.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8

-> LANG=C.UTF-8 ← generic “C” locale (no country)

It caused a NPE in the code. I could temp fix it by adding -Duser.language=en -Duser.country=US to the jvm args.
We should already handle the cases where no OS locale is provided, but seems there is some check missing.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions