You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide code samples we can use to reproduce the issue as part of our integration tests. If there is a public repository for the misbehaving application link to it here
It seems the problem is located in the method SecurityUtils.isValidHost, since it compares the ALB's hostname with the API Gateway Id, which is not provided:
To help us debug your issue fill in the basic information below using the options provided
Serverless Java Container version:
eg. 1.5
2.0.0-M2
Implementations:
Jersey / Spring / Spring Boot / Spring Boot 2 / Spark
Spring Boot 3
Framework version:
eg SpringBoot 2.2.6.RELEASE
Spring Boot 3.1.3
Frontend service:
REST API / HTTP API / ALB
ALB
Multiheaders enabled in the Target Group
Deployment method:
eg SAM, Serverless Framework, Console
SAM
Scenario
Describe what you are trying to accomplish
Implement a Rest API with HATEOAS.
Expected behavior
Describe how you would expect the application to behave
The request
should return the result
Actual behavior
Describe what you are seeing instead
Steps to reproduce
Provide code samples we can use to reproduce the issue as part of our integration tests. If there is a public repository for the misbehaving application link to it here
Sample code: https://github.com/luizck/spring-hateoas-lambda
It seems the problem is located in the method SecurityUtils.isValidHost, since it compares the ALB's hostname with the API Gateway Id, which is not provided:
https://github.com/awslabs/aws-serverless-java-container/blob/32eb54afd58fd68bbb118d6f51494ce426d628cc/aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequest.java#L408
The text was updated successfully, but these errors were encountered: