Can someone provide a configuration of a working Alfresco integration both for Orbeon and Alfresco? My configuration yields an error. I created a folder in the company directory called requisitions. I actually tried several names and locations.
I think the problem may lie inside the SOAP call. I found that the original path /app:company_home/cm:requisitions is being encoded as /app_x003a_company_home/cm_x003a_requisitions.
Does Alfresco accept this encoded path?
With this configuration:
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oxf="http://www.orbeon.com/oxf/processors">
<!-- This is an example of property which overrides an existing property's default value:
-->
<property as="xs:NMTOKENS"
name="oxf.xforms.logging.debug"
value="document model submission submission-details control event action analysis server html"/>
<property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="close clear print pdf save submit workflow-send"/>
<!-- Configure Alfresco Integration -->
<property as="xs:boolean" name="oxf.fr.detail.send.alfresco.*.*" value="true"/>
<property as="xs:anyURI" name="oxf.fr.alfresco.uri.*.*" value="http://localhost:8080/alfresco/"/>
<property as="xs:string" name="oxf.fr.alfresco.username.*.*" value="admin"/>
<property as="xs:string" name="oxf.fr.alfresco.credentials.*.*" value="program"/>
<property as="xs:string" name="oxf.fr.alfresco.path.*.*" value="/app:company_home/cm:requisitions"/>
<property as="xs:boolean" name="oxf.fr.alfresco.send-pdf.*.*" value="true"/>
<property as="xs:boolean" name="oxf.fr.alfresco.send-xml.*.*" value="false"/>
</properties>
I received this error.
<faultcode>soapenv:Server.generalException</faultcode><faultstring></faultstring><detail><ns1:RepositoryFault xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0"><ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalStateException:
Failed to resolve to a single NodeRef with parameters (store=workspace:SpacesStore uuid=null path=/app_x003a_company_home/cm_x003a_requisitions), found 0 nodes.</ns1:message></ns1:RepositoryFault><ns2:exceptionName xmlns:ns2="http://xml.apache.org/axis/">org.alfresco.repo.webservice.repository.RepositoryFault</ns2:exceptionName><ns3:stackTrace
xmlns:ns3="http://xml.apache.org/axis/">
Craig
__________________________ Craig Fox Collaboration Technology Architect City of Philadelphia mobile phone: 610.212.4539 desk phone: 215.686.8116 email: [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Craig,
I can't rule a bug or maybe a change in the Alfresco API. This code hasn't change in a while. For reference, here is the implementation: https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/alfresco/alfresco-model.xml#L48 You can see there that the path is specifically encoded in ISO-9075-14 format to escape special characters. This might have been needed with a certain version of Alfresco but might no longer needed. You could try to patch the implementation to remove this encoding. -Erik On Wed, Apr 20, 2011 at 8:24 AM, Craig Fox <[hidden email]> wrote: > Can someone provide a configuration of a working Alfresco integration both > for Orbeon and Alfresco? My configuration yields an error. I created a > folder in the company directory called requisitions. I actually tried > several names and locations. > I think the problem may lie inside the SOAP call. I found that the original > path /app:company_home/cm:requisitions is being encoded > as /app_x003a_company_home/cm_x003a_requisitions. > Does Alfresco accept this encoded path? > > With this configuration: > <properties xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:oxf="http://www.orbeon.com/oxf/processors"> > <!-- This is an example of property which overrides an existing > property's default value: > --> > <property as="xs:NMTOKENS" > name="oxf.xforms.logging.debug" > value="document model submission submission-details control > event action analysis server html"/> > <property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="close > clear print pdf save submit workflow-send"/> > > <!-- Configure Alfresco Integration --> > <property as="xs:boolean" name="oxf.fr.detail.send.alfresco.*.*" > value="true"/> > <property as="xs:anyURI" name="oxf.fr.alfresco.uri.*.*" > value="http://localhost:8080/alfresco/"/> > <property as="xs:string" name="oxf.fr.alfresco.username.*.*" > value="admin"/> > <property as="xs:string" name="oxf.fr.alfresco.credentials.*.*" > value="program"/> > <property as="xs:string" name="oxf.fr.alfresco.path.*.*" > value="/app:company_home/cm:requisitions"/> > <property as="xs:boolean" name="oxf.fr.alfresco.send-pdf.*.*" > value="true"/> > <property as="xs:boolean" name="oxf.fr.alfresco.send-xml.*.*" > value="false"/> > </properties> > I received this error. > <faultcode>soapenv:Server.generalException</faultcode><faultstring></faultstring><detail><ns1:RepositoryFault > xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0"><ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalStateException: > Failed to resolve to a single NodeRef with parameters > (store=workspace:SpacesStore uuid=null > path=/app_x003a_company_home/cm_x003a_requisitions), found 0 > nodes.</ns1:message></ns1:RepositoryFault><ns2:exceptionName > xmlns:ns2="http://xml.apache.org/axis/">org.alfresco.repo.webservice.repository.RepositoryFault</ns2:exceptionName><ns3:stackTrace > xmlns:ns3="http://xml.apache.org/axis/"> > Craig > > __________________________ > Craig Fox > Collaboration Technology Architect > City of Philadelphia > mobile phone: 610.212.4539 > desk phone: 215.686.8116 > email: [hidden email] > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Erik,
I made the following change in the alfresco-model.xml. <xxforms:variable name="alfresco-path" select="string-join(for $p in tokenize(xxforms:property(string-join(('oxf.fr.alfresco.path', $app, $form), '.')), '/') return $p, '/')" as="xs:string"/> The interface now worked correctly. I was able to send both the pdf and the xml forms of the form. Note that I am using Alfresco Enterprise Version 3.4.0. Craig __________________________ Craig Fox On Apr 20, 2011, at 12:14 PM, Erik Bruchez wrote: > > I can't rule a bug or maybe a change in the Alfresco API. This code > hasn't change in a while. For reference, here is the implementation: > > https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/alfresco/alfresco-model.xml#L48 > > You can see there that the path is specifically encoded in ISO-9075-14 > format to escape special characters. This might have been needed with > a certain version of Alfresco but might no longer needed. You could > try to patch the implementation to remove this encoding. > > -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Craig,
Can you post your Alfresco integration configuration; I tried to follow the documentation (updating properties-local.xml) and getting "The requested resource (/alfrescoapi/AuthenticationService) is not available" error. Thanks in advance Regards, ~Deva~ |
Deva,
I had a different problem than you are currently encountering. In the Alfresco-model.xml, it performs an ISO 9075 conversion that causes a problem with the Alfresco webscript. I removed the conversion and it workded. Here is the replacement code. Note that the comment is now incorrect! <!-- Make sure to encode path using ISO 9075-14:2003 --> <xxforms:variable name="alfresco-path" select="string-join(for $p in tokenize(xxforms:property(string-join(('oxf.fr.alfresco.path', $app, $form), '.')), '/') return $p, '/')" as="xs:string"/> Here is the file. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |