Forum Discussion
Sep 29, 2009
12031 error
Hello all,
I am getting a 12031 error on accessing static files on a proxy server that needs credentials. It's suppose to prompt the user for credentials, but it doesn't.
...
Sep 30, 2009
Thank you again. Good catch.
The issue is now resolved.
1) Windows authenthication is what the application is using.
2) Logs NOT needed now since that issues fixed.
Resolution: Changed "elseif { ([HTTP::status] starts_with "4") and ($global_URL == 1) } {" to "elseif { ([HTTP::status] contains "404") and ($global_URL == 1) } {".
3) fixed. Thanks.
If you don't mind, may I ask another question in regards to global variables.
Here are the logs:
Wed Sep 30 09:50:34 PDT 2009 tmm tmm[1647] 01220001 TCL error: remove_portal_site_TRX HTTP_REQUEST - cant read global_URL: no such variable while executing if { $global_URL == 1 } { Do nothing } else { set global_URL 0 }
Wed Sep 30 09:50:43 PDT 2009 tmm tmm[1647] Rule remove_portal_site_TRX HTTP_REQUEST: ------initial request has /solutioncenter in URL.-----
Wed Sep 30 09:50:44 PDT 2009 tmm tmm[1647] Rule remove_portal_site_TRX HTTP_REQUEST: ------VCM FURL, action.process, or outside.qad.com.-----
Wed Sep 30 09:50:45 PDT 2009 tmm tmm[1647] Rule remove_portal_site_TRX HTTP_RESPONSE: 404 error re-direct to erp homepage from solutioncenter
Wed Sep 30 09:50:45 PDT 2009 tmm tmm[1647] Rule remove_portal_site_TRX HTTP_REQUEST: ------Add portal site in URL.-----
Wed Sep 30 09:50:46 PDT 2009 tmm tmm[1647] 01220001 TCL error: remove_portal_site_TRX HTTP_RESPONSE - cant read global_URL: no such variable while executing if { [HTTP::status] starts_with 3 } { set newRedir [string map {/portal/site } [HTTP::header Location]] HTTP::header replace Location $ne...
Wed Sep 30 09:50:46 PDT 2009 tmm tmm[1647] Rule remove_portal_site_TRX HTTP_RESPONSE: 301 re-direct Header
Question 1) Why is it trying to read $global_URL under the first if statement:
when HTTP_RESPONSE {
if { ([HTTP::status] starts_with "3") } {
set newRedir [string map {"/portal/site" "" } [HTTP::header Location]]
HTTP::header replace Location $newRedir
log local0. "301 re-direct Header: $newRedir"
return
}
Question 2) Why can't it understand $global_URL? I thought variables set in the request are all global?
elseif { ([HTTP::status] contains "404") and ($global_URL == 1) } {
HTTP::respond 301 Location "http:[HTTP::host]/erp/"
log local0. "404 error re-direct to erp homepage from solutioncenter"
return
}
}
Thank you.
Regards,
TRX
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
