Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] Server won't start (and channels won't deploy) on a Turkish JVM locale

Abierto
#483 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
66/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java

Línea de trabajo

Start with JdbcDao.addMetaDataColumn, where StringUtils.lowerCase builds the query name, and with the MyBatis mapper files that hold the type aliases. Reproduce by running the server with -Duser.language=tr -Duser.country=TR and deploying a channel. Done means startup and channel deploy both succeed under the Turkish locale, using Locale.ROOT for case-insensitive lookups or explicit class names in the mappers.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Spun off from #476. It all started with a test failing on my Italian machine. Out of curiosity I tried Turkish, the classic locale troublemaker, and things got worse: the server doesn't even start.

Describe the bug
Turkish has a dotted and a dotless i, so "I".toLowerCase() gives ı. OIE trips over this twice:

  1. Startup: MyBatis 3.1.1 lowercases type aliases with the default locale, so "Integer" becomes "ınteger", nobody knows what that is, and startup loops.
  2. Deploy: with (1) worked around, every channel deploy fails. JdbcDao.addMetaDataColumn builds the query name with StringUtils.lowerCase, so it looks for addMetaDataColumnStrıng, finds nothing, and Derby says "SQL text pointer is null".

Consistently reproducible.

To Reproduce
Run the server with -Duser.language=tr -Duser.country=TR, then deploy any channel.

Expected behavior
OIE works regardless of the system locale.

Environment

  • OS: macOS
  • Java: Zulu 17.0.17
  • Version: main @ a13e6afb6

Workaround(s)
Run the JVM with an English locale.

Notes
As offered in #476, happy to look into a fix if that works for you. Rough ideas:

  • for (1), use java.lang.Integer in the mappers (25 lines; MyBatis is fixed upstream since 3.2.0, but that's a big jump);
  • for (2), use Locale.ROOT where casing is used for lookups;
  • add a tr_TR smoke scenario so it stays fixed. That covers the CI half of #476.

Open to other approaches, of course.

Lenguaje dominante
Java
Estrellas
227
Forks
81
Merge medio
2 d 16 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenIntegrationEngine/engine

Todos los issues de OpenIntegrationEngine/engine

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.