apache / apache/grails-core

Running grails WAR file as a regular Java application fails in Turkish locale

Open
#9,395 3 comments 0 reactions 0 assignees View on GitHub
status: acknowledged
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Running;

java -Dgrails.env=prod -jar build/libs/mywar-0.1.war

fails with message:

```
Caused by: java.lang.IllegalArgumentException: No enum constantails.util.Environment.PRODUCTİON
```

Obviously a capitalization issue in Turkish Locale due to i --> İ. :-(

I will try to submit a PR as soon as I am able to deploy the war file somehow to production.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `java -Dgrails.env=prod -jar build/libs/mywar-0.1.war` under a Turkish locale, then trace the environment enum parsing reached by the WAR launcher. Done means the production environment is recognized without producing `PRODUCTİON`, with a regression test covering the Turkish locale.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
backend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.