[Featureserver] Handling of 'record not found'

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Sat May 1 19:26:32 EDT 2010

On May 1, 2010, at 6:00 AM, ext Peter Robins wrote:

> AFAICS, there's no check at the moment that a fid in the url exists
> (at least in the datasources I've looked at). If I try to read, update
> or delete a fid that does not exist, I get a python error, but with a
> 200 response code. So, if I'm using this for example with OL
> protocol/strategy, OL interprets this as meaning 'transaction
> successful', which it wasn't.
> Shouldn't FS be returning 404 code if the fid in the url doesn't exist?

Yep. There's probably a lot of similar things here, where we don't actually handle every aspect of unusual behavior correctly. I'd gladly take a patch that improves this behavior.

-- Chris

More information about the Featureserver mailing list