$.ajax returns "Invalid argument" when VPN'd into a site

$.ajax returns "Invalid argument" when VPN'd into a site

Hi guys,

I've raised a detailed bug report in the tracker, only to have it closed as I can't reveal the URLs used. So, I was hoping you would be able to help me.


Basically, I'm using a VPN product called iLink by Cognitas. Being on this VPN produces URLs in the following format: https://proxy.domain.com/the-url-you-actually-want For example https://webtopxeu7.domain.com/http://internal.ourdomain.com/Site/default.aspx

When I do an AJAX call to a relative URL (i.e. /Site/Segment.aspx) IE reports "invalid argument" on line 5113 of the 1.4.2 core file. Looking further into it, I believe that psSRAPRewriter_convert_expression(type) is getting the URL confused.

I ran the code through Firebug too and got a more detailed message:
returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: https://proxy.domain.com/http://internal.ourdomain.com/Site/javascript/jquery-1.4.2.js?psScriptReferrer=http://internal.ourdomain.com/PCP/ :: anonymous :: line 5113" data: no]"

I'm struggling a bit here guys, something is wrong with the way it detects this kind of URL. If there's a quick patch you can think of, please let me know.

Cheers,
Steve
@steveworkman