Alert Dispatched event is not written while the server name is blank
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend, observability
Línea de trabajo
Lee Alert.java en la línea 59 y AlertWorker.java alrededor de la línea 212, donde el issue indica que el valor de contexto nulo hace que falle la creación del evento. Sigue cómo ActionTask crea el evento «Alert Dispatched» y comprueba si hay pruebas relacionadas que cubran las alertas con un nombre de servidor sin establecer. Reproduce el caso de una instalación nueva y luego confirma que el evento se escribe sin una excepción cuando el nombre del servidor está vacío y que sigue incluyendo serverName cuando está establecido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
While the server name is blank (Settings, Server, Server Name, empty on a fresh install), alerts are sent but no "Alert Dispatched" event is written, and nothing is logged.
On 4.7.0, a fresh engine on Derby with nothing added:
- A channel whose JavaScript Writer destination throws (
throw new Error('boom');), and a second channel to receive an alert's Channel action. - An alert on any error of any channel, with a Channel action to the second channel.
- Send one message to the first channel. The destination errors and the alert's action delivers to the second channel. No "Alert Dispatched" event is written, and the log shows only the destination's own error.
- Set a Server Name and send another message. The action delivers again, and this time the event is written, with
serverNameamong its attributes.
Alert.createContext puts serverName into the alert's context (Alert.java:59), and it is null until a name is set. AlertWorker.ActionTask.call() sends the actions, then builds the event by calling entry.getValue().toString() on every context value (AlertWorker.java:212), which throws on the null. The task runs through actionExecutor.submit(...) and nothing reads the returned Future, so the exception is not logged. Skipping null values when building the event, or using String.valueOf, looks like the fix; not tested.
Co-authored with Claude Code.
- Lenguaje dominante
- Java
- Estrellas
- 227
- Forks
- 81
- Merge medio
- 6 d 5 h
- PR fusionados (30 d)
- 26
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenIntegrationEngine/engine
-
oieserver.sh doesn't work when JAVA_TOOL_OPTIONS is setPosiblemente ocupada @iacsha la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
OpenIntegrationEngine/engine#523 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
OpenIntegrationEngine/engine#478 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenIntegrationEngine/engine#355 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenIntegrationEngine/engine#347 ·
Los mantenedores suelen responder en 1 día
-
Fix call-home in test runAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenIntegrationEngine/engine#313 ·
Los mantenedores suelen responder en 1 día
Todos los issues de OpenIntegrationEngine/engine
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
wultra/powerauth-tests#980 ·
-
account bug communication lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
line/centraldogma#1397 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
cryptomator/hub#515 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vert-x3/vertx-mail-client#268 ·