Symptoms
iControl REST API adds unnecessary escaping to URL if it contains a wildcard character.
Impact
iControl REST API adds unnecessary escape character (\) to URL. The resulting configuration may not be interpreted correctly by the data plane because the request URL does not match with the configuration.
-- One specific example:
# restcurl -u admin:<password> -d '{"name":"/vdesk/test*","type":"wildcard"}' "https://host.mgmt.siterequest.com/mgmt/tm/security/anti-fraud/profile/fps_logonpage_wildcard/urls"
-- Results in this:
urls {
/vdesk/test\\* {
priority 2
type wildcard
}
}
-- Instead of the expected:
urls {
/vdesk/test* {
priority 2
type wildcard
}
}
Conditions
-- Creating configuration using iControl REST API.
-- Configuration includes a URL containing wildcard character.
Workaround
Use TMSH to add the configuration.