Forum Discussion
Problem with b64decode lindex in Version 10.2.1
when HTTP_REQUEST {
The Wfm3g Datagroup List
set DATA_GROUP_LIST QA-Multiple-Portal
Get the request Host
set host [HTTP::host]
Get the URI
set uri [string tolower [HTTP::uri]]
The Wfm3g session cookie name
set wfm3g_cookie_name "JSESSIONID"
The Jasper Server session cookie name
set jasper_cookie_name "JASPERSESSIONID"
The JasperServer web context
set jasperreports_uri "/jasperserver-pro"
The JasperServer is down URL
set jasperisdownurl "/ute/jsp/reportingServerUnavailable.jsp"
The default JasperServer Pool name. Used if one is not specified
in the data group list for the client.
set DEFAULT_JASPER_POOL "Default-Jasper-Pool"
3G wfm context
set wfm3g_wfm_uri "/wfm"
Script Resource context
set scriptresource_uri "/scriptresource.axd"
Web Resource context
set webresource_uri "/webresource.axd"
Portal context
set portal_uri "/portal"
set DEFAULT_PORTAL_POOL "Portal-PMQA-Pool"
Layouts context
set layouts_uri "/_layouts"
Set Header information
set WLheader "WL-Proxy-SSL"
set WLheaderVal "true"
Retrieve the list of pools from the data group list
set clientPoolList [ findclass $host $DATA_GROUP_LIST " " ]
Route requests to Portal.
if { $uri starts_with $portal_uri }{
HTTP::header insert $WLheader $WLheaderVal
Identify the Portal pool
set portal_pool [getfield $clientPoolList " " 3]
log local0.notice "Forwarding to Portal pool: $portal_pool. Uri: $uri"
pool $portal_pool
return
} elseif { $uri starts_with $layouts_uri }{
HTTP::header insert $WLheader $WLheaderVal
log local0. "Inserting $WLheader: [HTTP::header value $WLheader]"
Identify the Portal pool
set portal_pool [getfield $clientPoolList " " 3]
log local0.notice "Forwarding to Portal pool: $portal_pool. Uri: $uri"
pool $portal_pool
return
} elseif { $uri starts_with $scriptresource_uri }{
HTTP::header insert $WLheader $WLheaderVal
Identify the Portal pool
set portal_pool [getfield $clientPoolList " " 3]
log local0.notice "Forwarding to Portal pool: $portal_pool. Uri: $uri"
pool $portal_pool
return
} elseif { $uri starts_with $webresource_uri }{
HTTP::header insert $WLheader $WLheaderVal
Identify the Portal pool
set portal_pool [getfield $clientPoolList " " 3]
log local0.notice "Forwarding to Portal pool: $portal_pool. Uri: $uri"
pool $portal_pool
return
Route requests to Jasper.
} elseif { $uri starts_with $jasperreports_uri }{
Identify the Jasper pool
set jasper_pool [getfield $clientPoolList " " 2]
If Jasper pool is not explicitly set for the client, use default
if { $jasper_pool eq "" }{
set jasper_pool $DEFAULT_JASPER_POOL
}
Make sure there is at least one Jasper server running
if { [active_members $jasper_pool] < 1 } {
HTTP::redirect $jasperisdownurl
} else {
log local0.notice "Forwarding to Jasper Report pool: $jasper_pool. Uri: $uri"
pool $jasper_pool
return
}
Route WFM requests to 3G Pool
} elseif { $uri starts_with $wfm3g_wfm_uri }{
set wfm3g_pool [getfield $clientPoolList " " 1]
log local0.notice "Forwarding to WFM3G pool: $wfm3g_pool. Uri: $uri"
pool $wfm3g_pool
return
} elseif { $uri equals "/" }{
HTTP::uri "/wfm"
set wfm3g_pool [getfield $clientPoolList " " 1]
log local0.notice "BLANK URI - Forwarding to WFM3G pool: $wfm3g_pool. Uri: $uri"
pool $wfm3g_pool
return
} else {
Identify the 3G pool
set wfm3g_pool [getfield $clientPoolList " " 1]
foreach header {WL-Proxy-SSL} {
log local0. "Removing $header: [HTTP::header value $header]"
HTTP::header remove $header
log local0.notice "Forwarding to WFM3G pool: $wfm3g_pool. Uri: $uri"
pool $wfm3g_pool
return
}
}
}
when HTTP_RESPONSE {
Secure the outbound Wfm3g cookie.
if { [HTTP::cookie exists $wfm3g_cookie_name] } {
HTTP::cookie secure $wfm3g_cookie_name enable
}
Secure the outbound JasperServer cookie.
if { [HTTP::cookie exists $jasper_cookie_name] } {
HTTP::cookie secure $jasper_cookie_name enable
}
}
- StephanMantheyFeb 19, 2015
Nacreous
Hi DeepakK, I guess this is an error generated by cURL when using the REST API, right? In case yes, are other requests to the API successful or is it just a specific one? Thanks, Stephan - DeepakK_154002Feb 19, 2015
Nimbostratus
Yes while Accessing my Application I am facing issue i am unable to access Via f5.
[root@blr-bigip2:Active:Standalone] config curl -v -k https://192.168.52.49:1443/abc/services/listServices > ssl.text * About to connect() to 192.168.52.49 port 1443 (0) * Trying 192.168.52.49... connected * Connected to 192.168.52.49 (192.168.52.49) port 1443 (0) * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSLv3, TLS handshake, Client hello (1): } [data not shown] * SSLv3, TLS handshake, Server hello (2): { [data not shown] * SSLv3, TLS handshake, CERT (11): { [data not shown] * SSLv3, TLS handshake, Server finished (14): { [data not shown] * SSLv3, TLS handshake, Client key exchange (16): } [data not shown] * SSLv3, TLS change cipher, Client hello (1): } [data not shown] * SSLv3, TLS handshake, Finished (20): } [data not shown] * SSLv3, TLS change cipher, Client hello (1): { [data not shown] * SSLv3, TLS handshake, Finished (20): { [data not shown] * SSL connection using AES256-SHA256 * Server certificate: * subject: C=US; ST=California; L=Redwood City; O=abc Inc.; OU=Certificates; CN=*.corp.abc.com * start date: 2014-09-25 00:00:00 GMT * expire date: 2015-09-25 23:59:59 GMT * common name: *.corp.abc.com (does not match '192.168.52.49') * issuer: C=US; O=Thawte, Inc.; CN=Thawte SSL CA * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
GET /abcsoap/services/listServices HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1e zlib/1.2.3 libidn/0.6.5 Host: 192.168.52.49:1443 Accept: /
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Closing connection 0
- DeepakK_154002Mar 02, 2015
Nimbostratus
Hi Stephan Manthey please find the ssl dump
New TCP connection 1: 192.168.210.7(51326) <-> 192.168.211.234(9243) 1 1 0.0006 (0.0006) C>S Handshake ClientHello Version 3.3 cipher suites TLS_RSA_WITH_AES_256_CBC_SHA256 TLS_RSA_WITH_AES_256_CBC_SHA TLS_RSA_WITH_AES_128_CBC_SHA256 TLS_RSA_WITH_AES_128_CBC_SHA TLS_RSA_WITH_3DES_EDE_CBC_SHA TLS_RSA_WITH_RC4_128_SHA Unknown value 0xc028 Unknown value 0xc014 Unknown value 0xc027 Unknown value 0xc013 Unknown value 0xc012 Unknown value 0xff compression methods NULL 1 2 0.0039 (0.0032) S>C Alert level fatal value handshake_failure 1 0.0050 (0.0011) S>C TCP FIN 1 0.0051 (0.0001) C>S TCP RST
- DeepakK_154002Mar 02, 2015
Nimbostratus
Please help me to T-shoot the issue....
- DeepakK_154002Mar 04, 2015
Nimbostratus
Hi all i need help to resolve this issue. Kindly help me with this.