Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5rc2
-
Fix Version/s: 1.5rc3
-
Component/s: mapbuilder-lib
-
Labels:None
-
Number of attachments :
Description
If you define a WebServiceForm lniked to a Model with getMethod line 61 of WebServiceForm.js is executed
WebserviceForm.js line 57
if (httpPayload.method.toLowerCase() == "get") {
httpPayload.url = this.webServiceForm.action + "?";
for (var i=0; i<this.webServiceForm.elements.length; ++i)
'element.value' is the parameter value element value from a web form, but what happen when this value contains (i.e. whiteSpace tabs ),?If those are not escaped would generate an erronous HTTP URL (http:\\locahost:8080\myApp\param1=Hello World) and ProxyRedirector Crush getting 505 error from webServer.
So to fix this bug I have modified line 61 with this.
line 61 --> httpPayload.url += element.name + "=" + escape(element.value) + "&";
Done that the ServerURL param passing to ProxyRedirector is http:\\locahost:8080\myApp\param1=Hello%20World
![]()
Notice that the error is independent from the browser because the error is raised to ProxyRedirector before the OutputStream of the browser is being writed.So I believe this patch would work properly in all browser
.
Fixed issue as described by Ignacio in version: 4003.
Ignacio, while I realise that the error is most likely to occur in the server, we should still test in the browser as the code we are changing is in the browser.
Could you please test the fix in FF2, FF3, IE6, IE7.
(I don't expect any problems).