You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CKAN pull request ckan/ckan#8053 introduces a new configuration option ckan.search.solr_allowed_query_parsers which allows to specify whitelisted local parameters. If the search parameters are not included, this will cause some problems in ckanext-spatial like {!frange}:
Updated the doc to add params to the ckan.search.solr_allowed_query_parsers list in the ckan.ini configuration file when setting up spatial search.
Setup
-----
To enable the spatial search you need to add the ``spatial_query`` plugin to
your ini file. This plugin in turn requires the ``spatial_metadata`` plugin, eg::
ckan.plugins = ... spatial_metadata spatial_query
To define which backend to use for the spatial search use the following
configuration option (see `Choosing a backend for the spatial search`_)::
ckanext.spatial.search_backend = solr-bbox
For CKAN >2.10.4 and >2.9.11 to avoid errors in the spatial search, use the following configuration elements. For `solr-bbox` use `frange`, for `solr-spatial-field` use `field`::
ckan.search.solr_allowed_query_parsers = ... frange | field
The text was updated successfully, but these errors were encountered:
mjanez
added a commit
to mjanez/ckan-docker
that referenced
this issue
Apr 12, 2024
Environment
ckan-docker
)ckan-solr
with spatial config forsolr-bbox
andsolr-spatial-field
backends.ckanext-spatial
Problem:
solr-bbox
andsolr-bbox
using the{!frange}
local parameter.ckan-2.9.11
due to security restrictions disallowing local parameters.solr-bbox log:
solr-spatial-field log:
Reference the solution:
CKAN pull request ckan/ckan#8053 introduces a new configuration option
ckan.search.solr_allowed_query_parsers
which allows to specify whitelisted local parameters. If the search parameters are not included, this will cause some problems inckanext-spatial
like{!frange}
:ckanext-spatial/ckanext/spatial/search/__init__.py
Lines 123 to 124 in 9383084
or
{!field}
:ckanext-spatial/ckanext/spatial/search/__init__.py
Lines 202 to 211 in 9383084
Proposed fix:
Updated the doc to add params to the
ckan.search.solr_allowed_query_parsers
list in theckan.ini
configuration file when setting up spatial search.The text was updated successfully, but these errors were encountered: