AnsweredAssumed Answered

Login problem with DoCASU

Question asked by jnelsonjr on Sep 1, 2008
Latest reply on Sep 3, 2008 by opepin@optaros.com
This is in regard to the addon DoCASU

When trying to login with a user that has no access to Company home for security reasons, the following errors popup in the browser window. When I give that user access to the Company Home directory, they can login without a problem. The user can log in with the standard Alfresco UI and all works even when they have no access to Company Home so this is definetely a problem with DoCASU.

Here is the error…


Failed on user login. { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "Failed to execute script '\/com\/optaros\/alfresco\/docasu\/user\/user.get.js (in classpath store file:\/opt\/alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/extension\/templates\/webscripts)': Failed to execute script '\/com\/optaros\/alfresco\/docasu\/user\/user.get.js (in classpath store file:\/opt\/alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/extension\/templates\/webscripts)': ReferenceError: \"person\" is not defined. (AlfrescoScript#19)", "exception" : "org.alfresco.scripts.ScriptException - Failed to execute script '/com/optaros/alfresco/docasu/user/user.get.js (in classpath store file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts)': Failed to execute script '/com/optaros/alfresco/docasu/user/user.get.js (in classpath store file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts)': ReferenceError: \"person\" is not defined. (AlfrescoScript#19)", "callstack" : [ ,"org.mozilla.javascript.EcmaError: ReferenceError: "person" is not defined. (AlfrescoScript#19)" ,"org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)" ,"org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)" ,"org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)" ,"org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)" ,"org.mozilla.javascript.gen.c2._c0(AlfrescoScript:19)" ,"org.mozilla.javascript.gen.c2.call(AlfrescoScript)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c2.call(AlfrescoScript)" ,"org.mozilla.javascript.gen.c2.exec(AlfrescoScript)" ,"org.mozilla.javascript.Context.evaluateString(Context.java:1196)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:396)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:114)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:243)" ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)" ,"org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:615)" ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:105)" ,"org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:312)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:242)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:172)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:323)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:267)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)" ,"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:803)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)" ,"org.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)" ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)" ,"org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)" ,"org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)" ,"org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)" ,"org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.error.AlfrescoRuntimeException: ReferenceError: "person" is not defined. (AlfrescoScript#19)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:403)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '/com/optaros/alfresco/docasu/user/user.get.js (in classpath store file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts)': ReferenceError: "person" is not defined. (AlfrescoScript#19)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:118)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '/com/optaros/alfresco/docasu/user/user.get.js (in classpath store file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts)': Failed to execute script '/com/optaros/alfresco/docasu/user/user.get.js (in classpath store file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts)': ReferenceError: "person" is not defined. (AlfrescoScript#19)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:247)" ], "server" :

Outcomes