Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: duplicate parameters in the request Liferay 7.2 EE
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
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
Ovidiu David Dan:
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.
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
Only one field is sent from the form and 2 values from the same field arrive on the server.
Thank you!!
Thank you!!
Attachments:
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
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™