On Tue, 2009-02-03 at 23:23 -0700, Justin Deoliveira wrote:
> Hi all,
> 
> I just committed the improvements and cleanup to the community rest 
> module as per GEOS-2579.
> 
> I also updated the depending modules, namely RESTConfig, geosearch, 
> QueryUsers, and sldService. I tested them best i could but it might be 
> good if the owner of those modules could do some quick testing as well. 
> David, I believe these fall under your domain?
> 
> Thanks,
> 
> -Justin
> 

I wrote most of the old RESTConfig, geosearch, and QueryUsers;
sldService is squarely outside my hands.  I've fixed a failing test in
geosearch, but haven't really used the fine-toothed comb yet.

I also haven't tried out the new RESTConfig, though I'm pretty excited
about it.  Looking over the docs though, I have a couple of points:

1) Status codes: There are a few places in the API as documented where
HTTP status codes are not used semantically; for example, a PUT that
changes the name of a coverage is not allowed, so you used "403
forbidden".  A 403 implies that this is a security restriction, when in
fact this is a design choice, and no user will ever be able to change
names this way, so a 400 Bad request (or perhaps a 409 Conflict) would
be more apt.  This doesn't matter so much for some admin hacking
together a script with curl, but if someone were writing a configuration
tool based on RESTConfig then this distinction would be quite useful.

2) Data encoded in resources that is already in the path.  Going back to
the name changing issue: it would not be a concern if the name was not
supplied in two places in the request; the request path and the body.
Since the name is already implicitly in the request path, I would
suggest removing it from the XML and JSON representations so that a
conflicting request can't be encoded.

Hopefully I will be able to dig into the code a bit tomorrow; I'll be on
IRC for sure.

-- 
David Winslow
OpenGeo - http://opengeo.org/


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to