Hi Chris, Derrell
thanks for checking. It should be easy to reproduce by a call to
qx.util.stringify() with an array as argument and comparing the results with
0.8.2 and trunk.
Cheers,
Fritz
P.S.: Instead of calling
rpc.callAsyn(handler,method, username. password) which then converts
the two extra arguments to an array
I can probably use an hash (object) like
rpc.callAsyn(handler,method, {'user': username,
'password': password})
which works in another part of my code. Less magic, anyway ...
BTW, the array-magic is not the problem (although I am wondering if
this should be allowed at all for maintainability reasons), as
rpc.callAsync(handler,method,[username, password]) doesn't work
either (as one would expect from looking at the source.
On Tue, 25 Aug 2009, Christian Schmidt wrote:
> Hi Fritz,
>
> I have no idea, what is going wrong. I have talked with Derrell, he will
> have a look on it.
>
> Cheers,
> Chris
>
> Fritz Zaucker schrieb:
>> 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