aws / aws/serverless-java-container

ServletContextListener never invoked

Đang mở
#505 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
1.6k
Fork
574
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

*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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by inspecting AwsServletContext.addListener and the ServletContextInitializer and ServletContextListener lifecycle described in the issue. Trace how the AWS servlet context is created and determine where the registered listener should be invoked. Done means an added ServletContextListener is called during initialization without breaking the Spring Boot serverless startup path.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, java, spring-boot
Lĩnh vực
api, backend, cloud
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.