More hash removal

icylace - November 7, 2009 - 16:24
Project:Services
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:critical
Assigned:Unassigned
Status:closed
Description

This patch builds on top of #616490: Services API misuses hash/number (#) symbols by taking out hashes that were still in the _services_keyauth_alter_methods() function in services_keyauth.inc. This will fix session ID handling.

AttachmentSize
services_d6_hash_update.patch1.56 KB

#1

heyrocker - November 7, 2009 - 21:18

I'm curious what session ID handling problem this fixes? I'm not against the patch I'm just curious.

#2

icylace - November 7, 2009 - 23:12

When I tried using the JSON Server module I wasn't able to use my services because the module was looking for hashed properties that no longer existed given the latest Services module development code. After modifying the JSON Server code to look for hashless preperties (planning to submt a patch soon to that project) it wasn't finding the session ID argument because the code defining it still included hashes. My patch removes those hashes to fix the problem.

#3

icylace - November 7, 2009 - 23:18

Also, when testing my services on the Services admin pages the sessid parameter was not showing properly. This prompted me to do a dump of the service method data structure to discover that the sessid argument had hashes in its definition. Then it was a matter of finding out where it was being originally defined and removing the hashes.

#4

Hugo Wetterberg - November 10, 2009 - 15:31
Status:needs review» reviewed & tested by the community

This should be committed as soon as possible. The change is necessary, and the patch applies cleanly.

A CVS-savy person might want to do that as I might just as well botch the trunk as succeed in committing the patch.

Cheers,
Hugo

#5

heyrocker - November 10, 2009 - 18:53
Status:reviewed & tested by the community» closed

Committed thanks to free wifi at Portland International Airport. Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.