[OSM-dev] Client trustworthyness

Shaun McDonald shaun at shaunmcdonald.me.uk
Wed Jun 17 21:05:24 BST 2009


I presume you mean version instead of id.

On 17 Jun 2009, at 19:27, SteveC wrote:

> So it looks like you grab a node and it has id n and you upload after
> changing it n+1. Or something.
>
> If the database has some id >n+1 it shouts 'EPIC FAIL' and the client
> says uh-oh you're out of date.
>
> But, the client could just try uploading n+2 or n+3... n+m until it
> succeeds. Is that correct?
>
> Curious, did anyone look at throwing tokens around instead of versions
> or some other way where you don't have to trust the client? I assume
> this would be computationally expensive.
>

There has been a tiny disussion on using random increases in version  
number (including the first version), or having a single version  
number for all nodes/ways/relations more like svn.

This however requires an API increase since the whole node/way/ 
relation would need to be returned on creation, instead of just the  
new id.

Shaun

> Of course, in the end we trust mappers :-)
>
> Best
>
> Steve
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev





More information about the dev mailing list