Issue
- Sometimes we need to modify or restrict the length or URL Liferay generates ( for example for security custom solutions ) but Liferay has no out of the box solution for that.
Environment
- DXP 7.2
Resolution
- The invoke filter handles the topic.
The limit is 4000 chars and it can be changed:
https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/portal.properties#L7102
# The invoker filter will reject any request to the portal where the request
# URI is longer than this value. For technical reasons, we should generally
# not allow more than 4000 characters.
https://github.com/liferay/liferay-portal/blob/05e1f5030d43bb6c1bf943c483fd50aae7a[…]iferay/portal/kernel/servlet/filters/invoker/InvokerFilter.java