Skip to content

When the url contains . and i use @Pathvariable to accept param, it can't work #333

Closed
@davidhua94

Description

@davidhua94
  • Framework version: SpringBoot 2.1.1.RELEASE 、aws-serverless-java-container-spring 1.3.1
  • Implementations: SpringBoot

Scenario

I used aws ApiGateway and integration with lambda. I use this url to test Https://xxx/{stage}/ping/test.test.test. But i got

{
    "timestamp": 1586246231077,
    "status": 500,
    "error": "Internal Server Error",
    "message": "File path not allowed: /file.test",
    "path": "/ping/test.test.test"
}

Expected behavior

image
It shoud be return

{
"pong":"test.test.test"
}

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