[Geoserver-devel] [JIRA] (GEOS-7497) Restricting security on layers breaks aggregate visitor optimizations in JDBC stores

Andrea Aime [Administrator] created an issue

GeoServer / BugGEOS-7497

Restricting security on layers breaks aggregate visitor optimizations in JDBC stores

Issue Type:

BugBug

Assignee:

Unassigned

Components:

Main, WPS

Created:

14/Apr/16 3:44 PM

Priority:

MediumMedium

Reporter:

Andrea Aime [Administrator]

Normally processes such as PagedUnique and Aggregate run as optimized sql statements, but applying security restrictions on the layers makes them fall back on data loading and in memory aggregatation insetad.

This is due to DecoratingFeatureCollection not delegating down the visit method (which is the right decision) and subclasses not taking measures to check if the visitor can be passed down, or not.

https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/security/decorators/SecuredSimpleFeatureCollection.java is one of those, but retyping (used in renames) and reprojecting/forcecrs collections are also causing the problem.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.2.0-OD-05-030#72002-sha1:7e8526a)

Atlassian logo