Query Accelerator improve error when index specifies something not in the query set

Description

A query set is silently rejected without a reason on the screen or in the log when a composite index specifies a value not in the query set.

Example taken from https://github.com/Alfresco/acs-packaging/blob/master/docs/query-accelerator.md

Environment

None

Activity

Show:
Nana Insaidoo
5 days ago
Edited

Upon refreshing the query set configuration files when a composite index has a field that is not defined in the properties nor in the aspects of the query set an InvalidQuerySetConfigFileException exception is thrown which is then caught in RqaQuerySetMBeanImpl::refreshQuerySets an appropriate error message should be logged but since logs are not activated for the class we do not see anything.


The error we should see looks like this:
01240021 composite-index 'index_1' references undefined field: cm:author

As a result of the above the error message that is shown in the admin console is:
Invalid query set configuration file.
I believe this messages should be more specific too.

Nana Insaidoo
4 days ago

Related to

Done

Assignee

Unassigned

Reporter

Alan Davis

Labels

None

Regression

None

Bug Priority

Category 2

Delivery Team

Team 5

Release Train

Iver

Story Points

2

Sprint

None

Affects versions