Issue
After configuring the F5 BIG-IP® Application Security Manager™ (ASM) product before a Liferay Server, several requests are blocked by the ASM module and following error is displayed:
- Illegal HTTP status in response
Environment
- Liferay Portal 6.0, 6.1, 6.2
- Liferay DXP 7.0, 7.1, 7.2, 7.3+
- F5 BIG-IP® Application Security Manager™ (ASM) before a Liferay server
Resolution
Some Liferay functionalities return responses with HTTP codes that are blocked by BIG-IP ASM:The default BIG-IP ASM configuration allows by default response codes 200 through 399 and 400, 401, 403, 404, 407, 417, 500 and 503. All other HTTP response codes are blocked by the BIG-IP ASM
- Standard HTTP codes:
- 409 and 412 (used in the webdav and workflows functionality)
- Non-standard HTTP codes:
- 490 to 499 (used in the file uploader for several funcionalities)
To solve this issue, it is necessary to configure these codes (409, 412 and 490 to 499) as allowed in the F5 BIG-IP ASM product.
Important note: The configuration of the F5 BIG-IP ASM product is out of scope of Liferay Support.
Additional Information
- F5 BIG-IP ASM documentation with the default allowed http error codes: https://support.f5.com/csp/article/K52325602 (external link)
- Definition of the 409 and 412 standard HTTP codes:
- Definition of the 490 to 499 non-standard HTTP codes in the Liferay ServletResponseConstants class: https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/servlet/ServletResponseConstants.java#L24-L36