[OSM-dev] 0.5 API: /api/0.5/user/preferences, values truncated to 256 chars

Shaun McDonald shaun at shaunmcdonald.me.uk
Tue Nov 25 16:45:35 GMT 2008


On 25 Nov 2008, at 16:39, Tom Hughes wrote:

> Andy Allan wrote:
>
>> http://trac.openstreetmap.org/browser/sites/rails_port_branches/api06/app/controllers/user_preference_controller.rb?rev=12071#L80
>>
>> The update method drops all existing prefs (#L85) and has the 150
>> limit. The update_one method seems more useful, and doesn't have a
>> limit, as far as I can see.
>
> Indeed - in fact can anybody give an example of when the update_all
> method would be useful, given that it drops all existing prefs? In  
> fact
> if that is exposed via a route then I would say we should remove it
> immediately as it is clearly exceedingly dangerous.
>

I remember Steve saying this was something to do with the REST mantra.

Shaun

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2433 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20081125/a606d29c/attachment.bin>


More information about the dev mailing list