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

Andy Allan gravitystorm at gmail.com
Tue Nov 25 15:59:03 GMT 2008


On Tue, Nov 25, 2008 at 3:51 PM, Tom Hughes <tom at compton.nu> wrote:

> What 150 entries limitation would that be? I'm not aware of any such
> limitation, although I didn't write the code. It's something that would
> be quite hard to enforce though so I don't see why anybody would bother.

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.

Cheers,
Andy




More information about the dev mailing list