Alessio Fabiani (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0027cfac-890c-48e1-8af0-974f12f7b9dc
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMzdlMmQ5NmNmZTE0NDE3NGEwYTc1ZDE1YjdlY2Q2NDUiLCJwIjoiaiJ9
) / Bug (
https://osgeo-org.atlassian.net/browse/GEOS-9552?atlOrigin=eyJpIjoiMzdlMmQ5NmNmZTE0NDE3NGEwYTc1ZDE1YjdlY2Q2NDUiLCJwIjoiaiJ9
) GEOS-9552 (
https://osgeo-org.atlassian.net/browse/GEOS-9552?atlOrigin=eyJpIjoiMzdlMmQ5NmNmZTE0NDE3NGEwYTc1ZDE1YjdlY2Q2NDUiLCJwIjoiaiJ9
) [GeoFence Plugin] "LIMITS" type rules seem failing for ImageMosaics (
https://osgeo-org.atlassian.net/browse/GEOS-9552?atlOrigin=eyJpIjoiMzdlMmQ5NmNmZTE0NDE3NGEwYTc1ZDE1YjdlY2Q2NDUiLCJwIjoiaiJ9
)
Issue Type: Bug Affects Versions: 2.15.5, 2.16.2, 2.17-RC Assignee: Unassigned
Components: GeoFence Created: 26/Mar/20 3:29 PM Priority: High Reporter:
Alessio Fabiani (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0027cfac-890c-48e1-8af0-974f12f7b9dc
)
By defining a "LIMIT" type access rule for a specific user against an
ImageMosaic, I would expect the outcome to be cropped accordingly to the
specified allowed area.
E.g.:
1. Having an Image Mosaic with about 80 granules on a single dimension with the
following BBOX
SRS = EPSG:3857
NATIVE BBOX =
{x0: 4324501.311667766, y0: -821850.9280018109, x1: 4412556.768240058, y2:
-714227.5921912305}
LL_BBOX =
{x0: 38.847656244660726, y0: -7.362466864463051, x1: 39.638671869550855, y2:
-6.402648405022478}
2. Having a GeoFence LIMIT Rule defined as
{ user: afabiani, access: LIMIT service: *, layer: , catalogMode:
MIXED, allowedArea: SRID=4326;MULTIPOLYGON (((39.21844481882432
-6.670063574969543, 39.39971923288702 -6.822807115777458, 39.39971923288702
-6.986406834755428, 39.22943114694938 -6.975501952613067, 39.21844481882432
-6.670063574969543))) }
When querying the layer I get the following logs:
{{ 2020-03-26 14:08:03,718 DEBUG [geoserver.geofence] - Getting access limits
for Layer planet_satellite_imagies_2018
2020-03-26 14:08:03,718 DEBUG [geoserver.geofence] - Getting access limits for
Resource planet_satellite_imagies_2018
2020-03-26 14:08:03,718 DEBUG [geoserver.geofence] - Setting user for filter:
afabiani
2020-03-26 14:08:03,719 DEBUG [geoserver.geofence] - ResourceInfo filter:
RuleFilter [user:"afabiani"+ role:ANY inst:name+:default-gs
ip:"0:0:0:0:0:0:0:1"+ serv:"WMS"+ req:"GETLEGENDGRAPHIC"+ ws:"geonode"+
layer:"planet_satellite_imagies_2018"+]
2020-03-26 14:08:03,719 DEBUG [geofence.cache] - Request for RuleFilter
[user:"afabiani"+ role:ANY inst:name+:default-gs ip:"0:0:0:0:0:0:0:1"+
serv:"WMS"+ req:"GETLEGENDGRAPHIC"+ ws:"geonode"+
layer:"planet_satellite_imagies_2018"+]
2020-03-26 14:08:03,720 DEBUG [geofence.cache] - Loading RuleFilter
[user:"afabiani"+ role:ANY inst:name+:default-gs ip:"0:0:0:0:0:0:0:1"+
serv:"WMS"+ req:"GETLEGENDGRAPHIC"+ ws:"geonode"+
layer:"planet_satellite_imagies_2018"+]
2020-03-26 14:08:03,722 INFO [services.RuleReaderServiceImpl] - Requesting
access for RuleFilter [user:"afabiani"+ role:ANY inst:name+:default-gs
ip:"0:0:0:0:0:0:0:1"+ serv:"WMS"+ req:"GETLEGENDGRAPHIC"+ ws:"geonode"+
layer:"planet_satellite_imagies_2018"+]
2020-03-26 14:08:03,724 DEBUG [geoserver.security] - Setting ROLES for User
[afabiani] to [ROLE_REGISTERED-MEMBERS]
2020-03-26 14:08:03,724 DEBUG [geofence.internal] - Checking Role
[ROLE_REGISTERED-MEMBERS] on ActiveRoleService
[org.geoserver.security.GeoServerRestRoleService@13db5a7]
2020-03-26 14:08:03,725 DEBUG [geofence.internal] - Checking UserGroupService
[default]
2020-03-26 14:08:03,725 DEBUG [geofence.internal] - Matching Roles [
[ROLE_REGISTERED-MEMBERS] ] for User [afabiani]
2020-03-26 14:08:03,742 DEBUG [util.FilterUtils] - ADDED Rule [id:9458 pri:341
user:afabiani ws:geonode l:planet_satellite_imagies_2018 acc:LIMIT]
2020-03-26 14:08:03,742 DEBUG [util.FilterUtils] - ADDED Rule [id:9459 pri:342
user:afabiani srv:WMS ws:geonode l:planet_satellite_imagies_2018 acc:ALLOW]
2020-03-26 14:08:03,749 DEBUG [util.FilterUtils] - ADDED Rule [id:9458 pri:341
user:afabiani ws:geonode l:planet_satellite_imagies_2018 acc:LIMIT]
2020-03-26 14:08:03,749 DEBUG [util.FilterUtils] - ADDED Rule [id:9459 pri:342
user:afabiani srv:WMS ws:geonode l:planet_satellite_imagies_2018 acc:ALLOW]
2020-03-26 14:08:03,750 DEBUG [services.RuleReaderServiceImpl] - Filter
RuleFilter [user:"afabiani"+ role:ANY inst:name+:default-gs
ip:"0:0:0:0:0:0:0:1"+ serv:"WMS"+ req:"GETLEGENDGRAPHIC"+ ws:"geonode"+
layer:"planet_satellite_imagies_2018"+] is matching the following Rules:
2020-03-26 14:08:03,751 DEBUG [services.RuleReaderServiceImpl] -
Role:ROLE_REGISTERED-MEMBERS
2020-03-26 14:08:03,751 DEBUG [services.RuleReaderServiceImpl] -
Role:ROLE_REGISTERED-MEMBERS ---> Rule [id:9458 pri:341 user:afabiani
ws:geonode l:planet_satellite_imagies_2018 acc:LIMIT]
2020-03-26 14:08:03,752 DEBUG [services.RuleReaderS