HTTP param binding of array params fails
----------------------------------------

                 Key: MASHUP-740
                 URL: https://wso2.org/jira/browse/MASHUP-740
             Project: WSO2 Mashup Server
          Issue Type: Bug
            Reporter: Jonathan Marsh
            Assignee: Keith Godwin Chapman


foo.safe = true;
foo.inputTypes={"a" : "string*"};
foo.outputType="string";
function foo(a){
    print(typeof(a));
    return a;
}

Use the try-it and "Add a" so you have multiple parameters in the array.  
Invoke the method.  Firefox reports multiple "a" params, which is correct IMO.  
The Mashup Server throws an exception.

Fault: Internal Server Error [detail]
<Exception>org.apache.axis2.AxisFault: Invalid JavaScript value of type 
[Ljava.lang.Object; (bugs-booleanarray#5)&#xd; 
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:431)&#xd; 
at 
org.wso2.javascript.rhino.JavaScriptEngine.call(JavaScriptEngine.java:186)&#xd; 
at 
org.wso2.javascript.rhino.JavaScriptEngine.call(JavaScriptEngine.java:210)&#xd; 
at ...

This is on 1.0.2. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to