I am using the November 10th, revision of services. I tried to update to the December 11th rev, and the sessionID parameter disappeared causing the functional calls to fail.
I'm not sure if I can explain it clearly, but when I browsed to all the default services (ie - admin/build/services/browse/views.get ) I see all the correct arguements (hash, domain_name, Timestamp, nonce, sessionid), but when I browse to my own (admin/build/services/browse/gls.get_view) -the Key arguements were there, but the sessionid was omitted.
1. I tried clearing cache, and changing my security setting, but nothing helped. The function would work with sessionid turned off, but not turned on.
2. When I called the function, it would fail - either trying to use the sessionid as the first argument in the function, or (if I omitted the sessionid) it would fail because an argument was missing.
This is my first reported bug - please let me know what additional information I can provide. I hope this is an easy fix.
Thanks,
Derek
Comments
Comment #1
gddI assume you were using the 2.x version before you upgraded?
Can you provide your service definition? It may provide some clues as to what is going wrong.
Comment #2
dereks commentedCorrect. I am using the 2.x version.
//--------------------------
//gls.get_view
//--------------------------
array(
'#method' => 'gls.get_view',
'#callback' => 'gls_get_view',
'#auth' => false,
'#args' => array(
array(
'#name' => 'view_name',
'#type' => 'string',
'#description' => t('View name.')
),
array(
'#name' => 'args',
'#type' => 'array',
'#optional' => TRUE,
'#description' => t('An array of arguments to pass to the view.')
),
),
'#return' => 'struct',
'#help' => 'Retrieves a view by view and display names',
)
Comment #3
marcingy commentedThe session is not being picked up because you have this in service definition
This was amended in ticket #646620 to overcome a bug that prevented user defined service from overriding the definitions provided by key auth.
Comment #4
dereks commentedLooks good, thanks a lot!