AnsweredAssumed Answered

Can not add a content as Contributor role

Question asked by unknown-user on Sep 7, 2006
Hi,

I am ussing the web services API to add a content in a space 'legalDocs1'; the user 'usr1' was invited as Contributor role in that space, when I am trying to add a content in the space 'legalDocs' as 'usr1' I catch an exception:



fPermissions -> Authority = usr1 ; Permission = Contributor; AccessStatus = acepted }

[2006-09-07 11:34:48 CDT] <WorkerThread1> Synchronization Failed, please fix it.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
        {}faultData:<ns1:errorCode xmlns:ns1="http://www.alfresco.org/ws/service/action/1.0">0</ns1:errorCode><ns2:messa
ge xmlns:ns2="http://www.alfresco.org/ws/service/action/1.0">Access Denied. You do not have the appropriate permissions
to perform this operation.</ns2:message>
        {http://xml.apache.org/axis/}exceptionName:org.alfresco.repo.webservice.action.ActionFault
        {http://xml.apache.org/axis/}stackTrace:
        at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService.addACEs(AccessControlWebService.java:185)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

        {http://xml.apache.org/axis/}hostname:appliance.qoslabs.com


        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
        at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
        at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008
)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentS
cannerImpl.java:1469)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.alfresco.webservice.accesscontrol.AccessControlServiceSoapBindingStub.addACEs(AccessControlServiceSoapBin
dingStub.java:623)
        at com.qoslabs.alfresco.webservice.repository.AlfrescoProvider.setPermissions(AlfrescoProvider.java:294)
        at com.qoslabs.alfresco.webservice.ui.AlfrescoEditContent.newAction(AlfrescoEditContent.java:722)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.webobjects.foundation.NSKeyValueCoding$1.methodValue(NSKeyValueCoding.java:684)
        at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1160)
        at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
        at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1539)
        at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:498)
        at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdd
itions.java:212)
        at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1600)
        at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
        at com.webobjects.appserver._private.WOImageButton.invokeAction(WOImageButton.java:239)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:55)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:55)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
        at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:104)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:82)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:31)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:55)
        at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
        at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
        at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
        at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:104)
        at com.webobjects.appserver._private.WOSwitchComponent.invokeAction(WOSwitchComponent.java:171)
        at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
        at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1166)
        at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1375)
        at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandl
er.java:196)
        at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHa
ndler.java:287)
        at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentReque
stHandler.java:322)
        at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358
)
        at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432)

        at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
        at com.qoslabs.wo.app.QOSApplication.superDispatchRequest(QOSApplication.java:510)
        at com.qoslabs.wo.app.QOSApplication$1.dispatchRequest(QOSApplication.java:487)
        at com.qoslabs.wo.app.QOSApplication.dispatchRequest(QOSApplication.java:519)
        at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
        at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
        at java.lang.Thread.run(Thread.java:595)

if I change the usr1 role to Coordinator in the space 'legalDocs' I can add the content succesfully. 

Do you know where is the problem?

Thanks, ingridm

Outcomes