On Tue, Sep 20, 2011 at 11:14 PM, Gabriel Roldan <groldan@anonymised.com> wrote:
issue a DescribeLayer request against a vector layer, results in something like:
<LayerDescription name="topp:states"
wfs="http://localhost:8080/geoserver/wfs/WfsDispatcher?"
owsURL="http://localhost:8080/geoserver/wfs/WfsDispatcher?"
owsType="WFS">
(note the /wfs/WfsDispatcher endpoint instead of just /wfs)
The class responsible for it actually has a comment:
DescribeLayerTransformer, line 153:
// REVISIT: not sure why we need WfsDispatcher, "wfs?" should suffice imho
owsUrl = buildURL(baseURL, "wfs/WfsDispatcher", null, URLType.SERVICE);
First question: can we get rid of /WfsDispatcher or does someone know
a reason not to?
I believe it's fine to remove it. Afaik the code in that class was written back
at the time when the actual wfs dispatcher was at that URL.
Second question: the endpoint actually work, so does /wfs/foo and
/wfs/bar and so on. Isn't that wrong?
I guess it migth have been made for backwards compatibility for
whoever was still
calling wfs/WfsDispatcher.
We could make the dispatcher be more strict, but maybe we need to add a flag
to re-enable the old behavior for those that cannot fix the existing
client applications?
Another worry is, do we have anything else in GeoServer linking back to the
wrong url, and thus relying on this tolerant behavior to actually work?
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------