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

Last Modified: Jul 16, 2019

Bug Tracker

Affected Product:  See more info
BIG-IP ASM, BIG-IQ(all modules)

Known Affected Versions:
11.5.1, 11.5.1 HF1, 11.5.1 HF10, 11.5.1 HF11, 11.5.1 HF2, 11.5.1 HF3, 11.5.1 HF4, 11.5.1 HF5, 11.5.1 HF6, 11.5.1 HF7, 11.5.1 HF8, 11.5.1 HF9, 11.5.2, 11.5.2 HF1, 11.5.3, 11.5.3 HF1, 11.5.3 HF2, 11.6.0, 11.6.0 HF1, 11.6.0 HF2, 11.6.0 HF3, 11.6.0 HF4, 11.6.0 HF5, 11.6.0 HF6, 11.6.0 HF7, 11.6.0 HF8, 12.0.0

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