In the Automaic Web Interface the Search not possible when to many ARA Folder permissions are set

Document ID : KB000115552
Last Modified Date : 21/09/2018
Show Technical Document Details
Issue:
When a ARA/ CDA user has too many folder permissions assigned the quick search in AWI results in a search error.

The JCP writes a trace file when this happens with the following error:

 
org.apache.lucene.queryparser.classic.ParseException: Cannot parse '((name:*RM.ABC_DEFG_HI_JKL.*)) AND ((aclPath:* OR aclPath:ABC_XYZ_* OR aclPath:XX_XXX* OR .... OR aclPath:\\': too many boolean clauses at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:126) at com.automic.search.lucene.searcher.IndexSearch.performSearch(IndexSearch.java:172) at com.automic.search.lucene.searcher.ObjectFinder.findObjectsInIndex(ObjectFinder.java:166) at com.automic.search.lucene.searcher.IndexSearch.find(IndexSearch.java:79) at com.automic.rest.search.SearchResource$FindCallable.call(SearchResource.java:76) at com.automic.rest.search.SearchResource$FindCallable.call(SearchResource.java:66) at com.automic.kernel.impl.CpMessageSenderImpl$2.execute(CpMessageSenderImpl.java:141) at com.automic.kernel.impl.DBAction.execute(DBAction.java:87) at com.automic.kernel.impl.DBAction.execute(DBAction.java:46) at com.automic.kernel.impl.DBAction.execute(DBAction.java:57) at com.automic.kernel.impl.DBAction.execute(DBAction.java:23) at com.automic.kernel.impl.CpMessageSenderImpl.runAsUser(CpMessageSenderImpl.java:134) at com.automic.rest.RestUser.transaction(RestUser.java:269) at com.automic.rest.ResourceComponent.transaction(ResourceComponent.java:28) at com.automic.rest.search.SearchResource.findObjects(SearchResource.java:56) at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:402) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:209) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:984) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1045) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.server.ssl.SslSocketConnector$SslConnectorEndPoint.run(SslSocketConnector.java:670) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:785) Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024 at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:137) at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:125) at org.apache.lucene.queryparser.classic.QueryParserBase.getBooleanQuery(QueryParserBase.java:715) at org.apache.lucene.queryparser.classic.QueryParserBase.getBooleanQuery(QueryParserBase.java:690) at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:208) at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:251) at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:171) at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:251) at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:202) at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:160) at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:117)
... 49 more
Environment:
N/A
Cause:
The global search does not work when a user has too many authorizations. The issue led to the message 'Search Error: No Results' being displayed in the global search box, and a force trace. The global search now returns results as expected for all users.
Resolution:
Solution:
Upgrade to the fix version below or a higher one.

Component(s):
Automation.Engine

Fix Version(s):
Automation.Engine 12.1.3 - estimated, planned Release date: End of September 
Automation.Engine 12.2.1 - estimated, planned Release date: End of October