Open
Description
Given an ALB event with multiValueQueryStringParameters but one of the value fails decodeURIComponent
, the promise isnt handled at all. Expectation is that it should return an error and consumers treat that error
The below test wont even report the failure since the promise is left unhandled
test('serverlessExpressInstance should throw', async () => {
const multiValueQueryStringParameters = { etype: ['odp'], passurl: ['/category/'], template: ['../../../../../../../../../etc/passwd%%0000.html'] }
const event = makeEvent({
eventSourceName: 'alb',
path: '/',
httpMethod: 'GET',
multiValueQueryStringParameters
})
await expect(serverlessExpressInstance(event)).toThrow('some')
})
Metadata
Metadata
Assignees
Labels
No labels