RE: duplicate parameters in the request Liferay 7.2 EE

Ovidiu David Dan, modified 6 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
Hello,
When I publish a content in Liferay 7.2 EE it gives me an error. Debuting the code I see that the request parameters appear duplicated. In the code I see that an attempt is made to cast a String of the array with the 2 duplicate values and it gives an error.
Do you know if there is a bug?Thank you
thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ovidiu David Dan:

When I publish a content in Liferay 7.2 EE it gives me an error. Debuting the code I see that the request parameters appear duplicated. In the code I see that an attempt is made to cast a String of the array with the 2 duplicate values and it gives an error.
Do you know if there is a bug?Thank you
Start by checking the form that you use to submit the data. If it contains several fields with the same name, you've got the root of your problem.
Ovidiu David Dan, modified 6 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
Only one field is sent from the form and 2 values from the same field arrive on the server.
Thank you!!
Ovidiu David Dan, modified 6 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
Finally we have found the root of the problem. We had added the org.apache.catalina.filters.RemoteIpFilter filter and it seems to be incompatible with liferay 7.2