Skip to content

Duplicate values in the AwsProxyHttpServletRequest.getParameterMap() #86

Closed
@avinashbitra

Description

@avinashbitra

screen shot 2017-12-30 at 12 42 12 pm

File: AwsProxyHttpServletRequest

@OverRide
public Map<String, String[]> getParameterMap() {
Map<String, String[]> output = new HashMap<>();
Map<String, List> params = urlEncodedFormParameters
.....
if (params.containsKey(entry.getKey())) {
params.get(entry.getKey()).add(entry.getValue());
}
.....

urlEncodedFormParameters are initialized in the constructor and getParameterMap whenever invoked keeps adding to the same Map which ends up in having duplicate values.

Map<String, List> params = this.getFormUrlEncodedParametersMap();
should reset the params map.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions