Forum Discussion

AngryCat_52750's avatar
AngryCat_52750
Icon for Nimbostratus rankNimbostratus
Mar 19, 2013

Sharepoint and Javascript Cancel event

I have a public site where users log into (F5 APM) and get to an internal Sharepoint page. The external site is called example.company.com and internall the Sharepoint site is called example_isa.company.com (it used to be behind an ISA server). I have a stream irule event so the user only ever sees example.company.com Everything works great but one thing.

 

When a user goes to the "upload a document" page and clicks on Cancel, it errors out. the cancel code shows this -

 

example_isa.company.com

I have the following code

 

 


when HTTP_RESPONSE {
     STREAM::disable
     if { [HTTP::header is_redirect] } {
     HTTP::header replace Location [string map {"http://example_isa.company.com" "https://example.company.com"} [HTTP::header value Location]] }
     if {[HTTP::header value Content-Type] contains "text"}{
     STREAM::expression {@http://example.company.com@https://example.company.com@ @http://example.company.com@https://example.company.com@ @http:\u002f\u002f@https:\u002f\u002f@ @http:\\u002f\\u002f@https:\\u002f\\u002f@ }
     STREAM::enable }}

when STREAM_MATCHED {
   log local0. "matched: [STREAM::match]"}

 

With this, i get a 404 error and the URL looks like this -

 

https://example.company.com/u002f/u002fexample_isa.company.com/InformationTechnology/Forms/AllItems.aspx

 

Any Ideas??

 

 

 

 

14 Replies