Bug ID 658636: When creating LTM or DNS monitors through batch/transaction mode newlines are improperly escaped.

Last Modified: Oct 07, 2023

Affected Product(s):
BIG-IP TMOS(all modules)

Known Affected Versions:
11.5.0, 11.5.1, 11.5.2, 11.5.3, 11.5.4, 11.5.5, 11.5.6, 11.5.7, 11.5.8, 11.5.9, 11.5.10, 11.6.1, 11.6.2, 11.6.3, 11.6.3.1, 11.6.3.2, 11.6.3.3, 11.6.3.4, 11.6.4, 11.6.5, 11.6.5.1, 11.6.5.2, 11.6.5.3, 12.1.2, 12.1.3, 13.0.0, 13.0.0 HF1, 13.0.0 HF2, 13.0.0 HF3

Fixed In:
14.0.0, 13.1.0, 13.0.1, 12.1.3.1

Opened: Apr 14, 2017

Severity: 3-Major

Related Article: K51355172

Symptoms

- LTM/DNS monitors created via tmsh batch/transactions improperly escape newline characters. - Expected escaping: \r\n - Actual escaping: \\r\\n - Impact: The URI sent is not correct,

Impact

Cannot use batch/transaction mode in TMSH to create LTM or DNS monitors. Cannot use LTM or DNS monitors created using batch/transaction mode in tmsh.

Conditions

When creating LTM or DNS monitors through batch/transaction mode when strings contain newline characters. For example, using the following commands to batch-create: create gtm monitor http one_test_mon { send "GET / HTTP/1.0\r\nHost: abc.example.com\r\nUser-Agent: slb-healthcheck\r\nConnection: Close\r\n\r\n" recv "200"} submit cli transaction list gtm monitor http one_test_mon The system creates the following monitor: gtm monitor http one_test_mon { defaults-from http destination *:* interval 30 probe-timeout 5 recv 200 send "GET / HTTP/1.0\\r\\nHost: abc.example.com\\r\\nUser-Agent: slb-healthcheck\\r\\nConnection: Close\\r\\n\\r\\n"

Workaround

Create the monitor directly in tmsh without using batch/transaction mode.

Fix Information

When creating LTM or DNS monitors through batch/transaction mode newlines are now properly escaped.

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips