geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
406 stars 483 forks source link

WFS resource: not taken into account by privileges #8236

Open jeanpommier opened 2 weeks ago

jeanpommier commented 2 weeks ago

Describe the bug A WFS resource is displayed even if Add to map and Download privileges are unchecked

To Reproduce Steps to reproduce the behavior:

  1. Add a WFS resource to a record
  2. Uncheck the privileges Add to map and Download
  3. Unlog yourself and open the record view as anonymous person
  4. See the WFS resource being displayed, with a Download button. The add to map button is grayed but still works (even though adding a WFS layer to the map seems broken)

Expected behavior

Screenshots

Public view (not logged in):

image

Privileges:

image

Desktop (please complete the following information):

jeanpommier commented 2 weeks ago

Note: this problem extends to other download and visualization services on GN 4.2.x

jeanpommier commented 2 weeks ago

Open the XML view of the record, the WFS service is also publicly exposed there (makes sense, but not desirable)