Cristiano Giovando ha scritto:
> Geoserver 2.0.x does not currently provide an option to restrict WFS
> access to certain layers, and at the same time not to others within
> the same instance. Let's say I have 3 layers published as WMS, but I
> only want 2 also accessible thru WFS. It would be nice to have control
> of how layers are exposed in each output format.
> 
> A quick workaround would be to set the "Per-Request Feature Limit"
> option in the layer's publishing section to "0", but it does not seem
> to be applied (if I set any other number it works and returns that
> exact number of features). I suppose the "0" value means "no limit",
> but it would be nice to actually use it as a real value to restrict
> access to that layer's WFS.
> 
> I understand this is not the best solution, as it breaks the
> Capabilities document, and so on, but it could be a quick fix before
> virtual OWS services are implemented (?), which would eventually
> provide more control on publishing options.

The virtual OWS services have been implemented many months ago
on trunk.

We cannot change the meaning of "0" as the lack of a feature limit
because it would break backwards compatibility (so, if we did,
we'd have to call the next GeoServer 3.0), plus a feature limit
would still make the layer available in the capabilities.

What you need is to alter the current security subsystem to care
about the combination of workspace, layer and service.

Alternatively you could help in merging the GEOXACML work, which
first requires to make the security subsystem pluggable (that's
where the help/funding is needed now). And then a good dose of
patience setting up the rules, last time I tried a single line
in the current simple security config file exploded in 100
lines of GEOXACML.

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to