Alfesco share search response gets Error code: 500 for users, for admins it works. Alfresco version 5.2.
URL: /share/service/faceted-search
Error code: 500 - Internal Error
In log this were printed:
ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-42] Exception from executeScript: 05120089 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': 05120088 TypeError: Cannot read property "GROUP_ALFRESCO_ADMINISTRATORS" from undefined (file:/tomcat/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2041)
org.springframework.extensions.webscripts.WebScriptException: 05120089 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': 05120088 TypeError: Cannot read property "GROUP_ALFRESCO_ADMINISTRATORS" from undefined (file:/srv/tomcat/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2041)