aws / aws/serverless-java-container

ServletContextListener never invoked

Aperta
#505 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Java
Stelle
1.6k
Fork
574
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

*Serverless Java Container version*: `1.9.1`

*Implementations:* `Spring Boot 2`

*Framework version:* `SpringBoot 2.7.5`

*Frontend service:* `HTTP API`

*Deployment method:* `SAM`

## Scenario
Hilla initializes some parts through a `ServletContextInitializer` that uses `servletContext.addListener` to add a `ServletContextListener` to the context. The actual initialization then takes place in the `ServletContextListener`. The problem is that the `addListener` method of `AwsServletContext` is empty.

Not sure where the correct place would be to invoke the listener. It seems to happen to work if I invoke the listener immediately.

## Expected behavior
The added listener is called

## Actual behavior
The added listener is ignored

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.