After i integrated alfresco with drupal 6.22 using cmis
every time i create a new node (page/image etc) in drupal i get the following error
HTTP call to [http://172.16.128.202:8080/alfresco/s/cmis/s/workspace:SpacesStore/i/d04... returned [500]. Response: Web Script Status 500 - Internal Error Web Script Status 500 - Internal Error The Web Script /alfresco/s/cmis/s/workspace:SpacesStore/i/d040b8f0-6fd2-45d8-b958-a40ce89adab6/children has responded with a status of 500 - Internal Error. 500 Description: An error inside the HTTP server which prevented it from fulfilling the request. Message:10080058 Wrapped Exception (with status template): 10085074 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': 10085073 Access Denied. You do not have the appropriate permissions to perform this operation. Exception:net.sf.acegisecurity.AccessDeniedException - Access is denied. net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86) net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394) net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:146) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) $Proxy66.create(Unknown Source) org.alfresco.repo.jscript.ScriptNode.createFile(ScriptNode.java:1639) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 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.c31._c5(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:133) org.mozilla.javascript.gen.c31.call(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) org.mozilla.javascript.gen.c31._c0(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:559) org.mozilla.javascript.gen.c31.call(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) org.mozilla.javascript.gen.c31.call(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.gen.c31.exec(file:/media/sdb1/alfresco-4.0.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:483) org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:191) org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282) org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102) org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1128) org.alfresco.repo.cmis.rest.CMISWebScript.executeScript(CMISWebScript.java:46) org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86) org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:400) org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500) org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118) 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.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 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:298) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) java.lang.Thread.run(Thread.java:619) Exception:org.alfresco.repo.security.permissions.AccessDeniedException - 10085073 Access Denied. You do not have the appropriate permissions to perform this operation. org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48) Exception:org.alfresco.scripts.ScriptException - 10085074 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': 10085073 Access Denied. You do not have the appropriate permissions to perform this operation. org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:195) Exception:org.springframework.extensions.webscripts.WebScriptException - 10080058 Wrapped Exception (with status template): 10085074 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': 10085073 Access Denied. You do not have the appropriate permissions to perform this operation. org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:905) Server:Community v4.0.0 (b 3835) schema 5,019 Time:Nov 8, 2011 2:39:59 PM Diagnostics:Inspect Web Script (org/alfresco/cmis/children.post)
Could some one help me
regards,
Rekha
Comments
Comment #1
byteslinger commentedSadly, you got the annoying Java stack trace, with way more information than you need or want. Regardless, here is the important part:
You do not have permission to create a document in the "cmis_folderPath" where you have your CMIS config[] setup (settings.php, most likely). You need to either change your login information to a more privileged Alfresco user, change the access on the Alfresco folder you're trying to upload to, or create a folder in Alfresco with your user id and password, then change your CMIS config[] setup to use your new folder as the "cmis_folderPath" value.
Comment #2
IanNorton commentedClosing 6.x issues as documented in this post