[Geoserver-users] Effect of WMS request on a layer without READ access?

What is the effect of including a layer without READ access in a WMS request? Does this result in:

  • an error reponse
  • OR in a map image which simply does not include the data from that layer (but does include all authorized layers)?

If an error response, is it possible to configure the latter behaviour (which I would term “graceful error handling”).

The potential use case is to support a mapping client which has layers configured by some external source, which may not be fully in synch with the permissions on the GeoServer catalog. The preference is to show as much data as possible, rather than a complete failure.

On Wed, Sep 25, 2013 at 11:09 PM, Martin Davis <mtnclimb@anonymised.com> wrote:

What is the effect of including a layer without READ access in a WMS
request? Does this result in:
- an error reponse
- OR in a map image which simply does not include the data from that layer
(but does include all authorized layers)?

An error response, either that the layer does not exist, or a request for
an authentication

If an error response, is it possible to configure the latter behaviour
(which I would term "graceful error handling").

Not possible at the moment, modifications to GeoServer code core would be
required (probably a new catalog mode
besides hide and challange)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Sep 25, 2013 at 2:42 PM, Andrea Aime
<andrea.aime@anonymised.com>wrote:

On Wed, Sep 25, 2013 at 11:09 PM, Martin Davis <mtnclimb@anonymised.com> wrote:

What is the effect of including a layer without READ access in a WMS
request? Does this result in:
- an error reponse
- OR in a map image which simply does not include the data from that
layer (but does include all authorized layers)?

An error response, either that the layer does not exist, or a request for
an authentication

If an error response, is it possible to configure the latter behaviour
(which I would term "graceful error handling").

Not possible at the moment, modifications to GeoServer code core would be
required (probably a new catalog mode
besides hide and challange)

Would I be right in thinking that the behaviour I'm talking about is
actually orthogonal to the Catalog Mode? It's a more low-level/pragmatic
thing, I think. The Catalog can continue to function as currently defined -
this is just about handling an "out-of-spec" error condition.

Perhaps this could be enabled via a Global Setting, or a system variable?
And would this make it a bit easier to hack into the code?