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 年前檢視次數 165 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南