I have a dspace 6.3 instance running on Ubuntu 18.04.3. When a user who belongs to two groups that are authorised to add to and edit all collections, a very long error is generated, ending with:
...
OR l9d9b96b2-ae23-40ea-9e98-46a8537ac4b5 OR lf94b27dc-2c22-476c-a012-72f36b50d521 OR lfd7afb4f-8a09-4412-8044-2acbe584fa76)': too many boolean clauses
at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:310)
at org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1610)
... 364 more
I've attached the solr.log containing the full error.
Removing the user from either of the groups resolves the problem. Also, if the user is an administrator the problem does not occur.
The problem occurs irrespective of the UI.
I downloaded a fresh copy of DSpace and updated the existing installation with it, but that didn't help. I deleted the /dspace directory and did a fresh installation, then restored the database; the problem persists.
But, I copied the database to a laptop (running the same versions of all software) and the problem went away.
If the problem doesn't exist in the database, where could it be? Does anybody have any ideas?
DSpace version: 6.3
SCM revision: 813800ce1736ec503fdcfbee4d86de836788f87c
SCM branch: UNKNOWN
OS: Linux(amd64) version 4.15.0-74-generic
Discovery: enabled.
JRE: Private Build version 1.8.0_242
Ant version: Apache Ant(TM) version 1.10.5 compiled on March 28 2019
Maven version: 3.3.9
DSpace home: /dspace
/etc/default/tomcat8: JAVA_OPTS="-Djava.awt.headless=true -Xmx8192m -Xms4096m -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8 -XX:MaxPermSize=512m"