samdlee_305622
Mar 24, 2017Nimbostratus
iRule is called many times for the same multipart/form-data form post
Hei, I've encountered a very confusing situation where a web form tries to upload a file together with some other info. In iRule associated with HTTP_REQUEST replaced the original HOST header with another string, bm-dev.mycompany.com/bm before calling "pool openshift3_infra". Although it works well for both Chrome and Firefox, the strange thing here is that the same iRule has been triggered many times before it finally reached the converned pool member. For instance, the worst situations is that the iRule is triggered 5 times (see loggings from LTM in my comments below due to limitation of words of question description) It'll be great if someone can shed the light on why it happens in this way.
Configurations for VS:
ltm virtual /Common/https_test {
description "[Internal] Test/Dev/Beta/Uat-apps"
destination /Common/1xx.xxx.xxx:443
fallback-persistence /Common/source_addr
ip-protocol tcp
mask 255.255.255.255
persist {
/Common/cookie {
default yes
}
}
profiles {
/Common/http { }
/Common/serverssl {
context serverside
}
/Common/tcp { }
/Common/wildcard.mycompany.no {
context clientside
}
}
rules {
/Common/log_HSL_beta
/Common/https_test_pool_select_v2
/Common/encrypt_cookie
/Common/strip_headers_inv_beta
/Common/error_message_v2.1
/Common/secure_cookie
/Common/disable_track_trace
/Common/response-handler-investor
/Common/common-cleansession
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
}
Thanks in advance!