Bug ID 535188: Response Pages custom content with \n instead of \r\n on policy import.

Last Modified: Sep 13, 2023

Affected Product(s):
BIG-IP ASM, BIG-IQ(all modules)

Known Affected Versions:
11.5.3, 11.6.0, 12.0.0, 12.1.0 HF1, 12.1.0 HF2, 12.1.1 HF1, 12.1.1 HF2, 12.1.2 HF1, 12.1.2 HF2

Fixed In:
12.1.0, 12.0.0 HF1, 11.6.1, 11.5.4

Opened: Jul 26, 2015

Severity: 3-Major

Symptoms

After importing policy with custom content on the Default Response Page, new lines are changed from \r\n to \n. They should not change.

Impact

New lines are changed from \r\n to \n.

Conditions

1. Create New Policy. 2. Go to Security : Application Security : Policy : Response Pages. 3. On Default Response Page, change Response Type to 'Custom Response'. 4. Add 'Enters' to the 'Response Body' and save it. (for example: <html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><br> Your support ID is: <%TS.request.ID()%></body></html>). 5. View the REST state of the response page and see that the new lines are represented by '\r\n'. 6. Export the policy to XML. 7. Import the policy back (replace the old policy). 8. Now the 'new lines' in the content of the response page presented by '\n' instead of '\r\n'.

Workaround

In the GUI, Go to Security : Application Security : Policy : Response Pages, remove and add the 'Enters' and click 'Save' for the Default Response Page.

Fix Information

After importing a policy with custom content on the Default Response Page, new lines are no longer changed from \r\n.

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips