Skip to content

HttpServletRequest.getRequestUrl is incorrect #10

@mattcorey

Description

@mattcorey

When running in AWS using the Spring integration, fronted by an API Gateway in AWS Proxy mode, calling HttpServletRequest returns a StringBuffer of the following format:

<api-gateway-host>//<requestPath>

It should return something like the following:

<scheme>://<api-gateway-host>/<stage>/<requestPath>

The primary visible impact of this is when using the Spring Data REST with auto-generated Controllers from Repositories - this creates HATEAOS-based Entities with self references, however all of the references are wrong. The ALPS metadata at the 'profile' endpoints are all incorrect as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions