I tracked that down a bit further:

the method __convertObject() in qx/util/Json.js in trunk is significantly
different than in 0.8.2. In trunk it detects the two arguments
(user,password) in the rpc.callSync below as type Object, whereas the
version in 0.8.2 detects it correctly as Array.

Putting back the 0.8.2 version into the otherwise unchanged trunk fixes the
problem for me, but it most likely will break other things ...

>From the svn log it seems this change was put in with revision 17648 using a
different method to detect object types. It seems qx.lang.Type.isArray() is
not doing it's job.

I don't know how to fix it properly.

Thanks,
Fritz

On Tue, 25 Aug 2009, Fritz Zaucker wrote:

> Hi,
>
> something seems to have changed in the trunk version (recently?) somewhere
> in the rpc calls or support functions.
>
> I do the following call:
>
>             this.rpc.callAsync( this.__authenticate, 'auth',
>                               user, password );
>
> user and password are just regular strings.
>
> This works fine with 0.8.2, but with svn revision r19893 I get the following
> error in the Apache log (and the same within the Qooxdoo callback handler):
>
> Session id: 70f4ff443238f3831b37fb1120090a6d
> GET request
> JSON received:
> {"service":"Agrammon","method":"auth","id":2,"params":"[\"logout\", \"\"]"}
> Module Qooxdoo::Services::Agrammon has GetAccessibility
> GetAccessibility(): method=auth
> GetAccessibility(): return public
> GetAccessibility for auth returns public
> Send qx.io.remote.ScriptTransport._requestFinished(2,
> {"error":{"origin":2,"code":5,"message":"Arguments were not received in an
> array"},"id":2});
>
>
> Anybody have an idea what the reason could be?
>
> Thanks,
> Fritz
>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to