AnsweredAssumed Answered

ldap & internal user db chaining and error messages

Question asked by edwin_s on Apr 20, 2009
Latest reply on Jun 6, 2009 by webrat
Hello there,

I somewhat successfully chained LDAP with the internal alfresco user db in my alfresco 3.0 labs/community edition.  However, after attemping to create a site with an ldap user, I get the following exceptions (one for the calendar and one for the members tab). 

"The Web Script /share/service/components/calendar/toolbar has responded with a status of 500 - Internal Error."
   Error during remote call. status: 500, response: { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager", "exception" : "org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager", "callstack" : [ "" ,"org.alfresco.repo.security.authority.UnknownAuthorityException: An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.repo.security.authority.AuthorityDAOImpl.getContainedAuthorities(AuthorityDAOImpl.java:213)" ,"org.alfresco.repo.security.authority.AuthorityServiceImpl.getContainedAuthorities(AuthorityServiceImpl.java:285)" ,"org.alfresco.repo.site.SiteServiceImpl.listMembers(SiteServiceImpl.java:666)" ,"org.alfresco.repo.site.script.Site.listMembers(Site.java:268)" ,"sun.reflect.GeneratedMethodAccessor734.invoke(Unknown Source)" ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" ,"java.lang.reflect.Method.invoke(Method.java:597)" ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)" ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)" ,"org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)" ,"org.mozilla.javascript.gen.c340._c0(AlfrescoScript:8)" ,"org.mozilla.javascript.gen.c340.call(AlfrescoScript)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c340.call(AlfrescoScript)" ,"org.mozilla.javascript.gen.c340.exec(AlfrescoScript)" ,"org.mozilla.javascript.Context.evaluateString(Context.java:1196)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:390)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:122)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:263)" ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)" ,"org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:800)" ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)" ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)" ,"org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)" ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)" ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)" ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)" ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:126)" ,"org.alfresco.web.scripts.WebScriptException: Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)" ], "server" : "Alfresco Labs v3.0.0 (Stable 1526) schema 1,002", "time" : "Apr 20, 2009 1:57:07 PM" } 

"The Web Script /share/service/components/invite/members-bar has responded with a status of 500 - Internal Error."
Error during remote call. status: 500, response: { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager", "exception" : "org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager", "callstack" : [ "" ,"org.alfresco.repo.security.authority.UnknownAuthorityException: An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.repo.security.authority.AuthorityDAOImpl.getContainedAuthorities(AuthorityDAOImpl.java:213)" ,"org.alfresco.repo.security.authority.AuthorityServiceImpl.getContainedAuthorities(AuthorityServiceImpl.java:285)" ,"org.alfresco.repo.site.SiteServiceImpl.listMembers(SiteServiceImpl.java:666)" ,"org.alfresco.repo.site.script.Site.listMembers(Site.java:268)" ,"sun.reflect.GeneratedMethodAccessor734.invoke(Unknown Source)" ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" ,"java.lang.reflect.Method.invoke(Method.java:597)" ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)" ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)" ,"org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)" ,"org.mozilla.javascript.gen.c346._c0(AlfrescoScript:8)" ,"org.mozilla.javascript.gen.c346.call(AlfrescoScript)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c346.call(AlfrescoScript)" ,"org.mozilla.javascript.gen.c346.exec(AlfrescoScript)" ,"org.mozilla.javascript.Context.evaluateString(Context.java:1196)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:390)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:122)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:263)" ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)" ,"org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:800)" ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)" ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)" ,"org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)" ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)" ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)" ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)" ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:126)" ,"org.alfresco.web.scripts.WebScriptException: Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/home\/alf\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_cit_SiteManager" ,"org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)" ], "server" : "Alfresco Labs v3.0.0 (Stable 1526) schema 1,002", "time" : "Apr 20, 2009 1:58:01 PM" } 

The other tabs do not display any errors.

Also, if I create a site as administrator account and then invite an ldap user as a manager, I do not appear to get that error.  Any help would be greatly appreciated.

If it would help, I can post the chaining and ldap xml/properties files. 

Thank you!
Edwin

Outcomes