Bug: Semicolons aren't being escaped in API gateway integration request

0

We have an API gateway integration request for a GET request which has this set up under "URL Query String Parameters": Name: userAgent Mapped from: context.identity.userAgent

Here's a snippet of the URL that we get from AWS in the integration request: &userAgent=Mozilla/5.0+(compatible;+Google-Apps-Script;+beanserver;+%2Bhttps://script.google.com;+id:+UAEmdDd-JF_eZcep6pqc2VRUjSlsCUIm-NA)&page=16

As you can see, some characters are properly escaped. However, the semicolon is not being properly escaped. Semicolons in URI parameter values are supposed to be URI escaped. Please fix this.

1개 답변
0

This is a known behaviour, semicolons are not escaped. It's listed under important notes in the documentation. Been like this for a long time, I don't expect it to change. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html#api-gateway-known-issues-rest-apis

profile picture
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인