Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.1
-
None
Description
While trying to execute a Solr query without PR, I have noticed this exception:
org.xwiki.query.QueryException: Query languages others than XWQL or HQL require programming right. Query statement = [not important]
Looking at the code, it seems that indeed we have this check in SecureQueryExecutorManager#execute().
This is bad, IMO, because it would require every extension that adds a new query language to have PR in order to use it.
We should either:
- let rights check be handled by each QueryExecutor
- have a common results interface for which rights can be checked in the upper level (like in SecureQueryExecutorManager)
Attachments
Issue Links
- depends on
-
XWIKI-12356 Allow each QueryExecutor to control the right required to execute the query
- Closed
- is duplicated by
-
XWIKI-12089 Solr Search Not Working - org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content
- Closed
-
XWIKI-13952 Missing RequiredRights xobject for Programming rights in SolrDocumentDoesNotExistUIX
- Closed