[OSM-dev] [solved] API threw unexpected NoMethodError exception

Tom Hughes tom at compton.nu
Fri Apr 5 21:43:45 UTC 2013


On 05/04/13 20:29, Martin Schafran wrote:

> found solution in forum.
>
> http://forum.openstreetmap.org/viewtopic.php?id=7256
>
> its a post from october 2011 and isn't commited yet?

Well mainly because we've never been told about it...

That said, it sounds like this can only happen when the database has 
been placed in an inconsistent state by importing data - the rails code 
would never allow such data to be created.

The rails code generally assumes that the database is consistent and the 
data obeys certain invariants (not all of which can be policed by the 
database level constraints) and it's not clear that we want to be adding 
lots more checks to handle cases where it is not consistent.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the dev mailing list