As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}GL Trade/{http://www.alfresco.org/model/content/1.0}Head Quarter Shared Services/{http://www.alfresco.org/model/content/1.0}Finance/{http://www.alfresco.org/model/content/1.0}1 - BUDGET/{http://www.alfresco.org/model/content/1.0}Budget 2007 Reference: workspace://SpacesStore/bff434b2-0a1b-11dd-9ce5-818517c9b32f Type: {http://www.alfresco.org/model/content/1.0}folder Parent: workspace://SpacesStore/bb17163a-0a1b-11dd-9ce5-818517c9b32f
/app:company_home/cm:GL_x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:_x0031__x0020_-_x0020_BUDGET/cm:Budget_x0020_2007
1 - BUDGET
x0031__x0020_-_x0020_BUDGET)
09:04:45,113 DEBUG [org.alfresco.repo.webservice.Utils] Resolving path: /app:com pany_home/cm:GL_x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm :Finance/cm:_x0031__x0020_-_x0020_BUDGET/cm:Budget_x0020_2007 09:04:45,124 ERROR [org.alfresco.repo.webservice.accesscontrol.AccessControlWebS ervice] Unexpected error occurred java.lang.IllegalStateException: Failed to resolve to a single NodeRef with para meters (store=workspace:SpacesStore uuid=null path=/app:company_home/cm:GL_x0020 _TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:_x0031__x 0020_-_x0020_BUDGET/cm:Budget_x0020_2007), found 0 nodes. at org.alfresco.repo.webservice.Utils.resolveToNodeRef(Utils.java:401) at org.alfresco.repo.webservice.Utils.convertToNodeRef(Utils.java:293) at org.alfresco.repo.webservice.Utils.resolvePredicate(Utils.java:448) at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService.ad dACEsImpl(AccessControlWebService.java:200) at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService.ac cess$100(AccessControlWebService.java:23) at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService$2. execute(AccessControlWebService.java:174) at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService$2. execute(AccessControlWebService.java:172) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti on(RetryingTransactionHelper.java:236) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti on(RetryingTransactionHelper.java:166) at org.alfresco.repo.webservice.accesscontrol.AccessControlWebService.ad dACEs(AccessControlWebService.java:177) at sun.reflect.GeneratedMethodAccessor711.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
/app:company_home/cm:GL_x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:1_x0020_-_x0020_BUDGET/cm:Budget_x0020_2007
Caused by: org.jaxen.XPathSyntaxException: Unexpected '1' at org.jaxen.BaseXPath.<init>(BaseXPath.java:132) at org.jaxen.BaseXPath.<init>(BaseXPath.java:153) at org.alfresco.repo.search.NodeServiceXPath.<init>(NodeServiceXPath.jav a:115) at org.alfresco.repo.search.impl.NodeSearcher.selectNodes(NodeSearcher.j ava:133) … 59 more Caused by: class org.jaxen.saxpath.XPathSyntaxException: /app:company_home/cm:GL _x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:1_x 0020_-_x0020_BUDGET/cm:Budget_x0020_2007: 100: Unexpected '1' at org.jaxen.saxpath.base.XPathReader.createSyntaxException(XPathReader. java:1120) at org.jaxen.saxpath.base.XPathReader.parse(XPathReader.java:119) at org.jaxen.BaseXPath.<init>(BaseXPath.java:127) … 62 more
09:04:45,113 DEBUG [org.alfresco.repo.webservice.Utils] Resolving path: /app:com pany_home/cm:GL_x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm :Finance/cm:_x0031__x0020_-_x0020_BUDGET/cm:Budget_x0020_2007 09:04:45,124 ERROR [org.alfresco.repo.webservice.accesscontrol.AccessControlWebS ervice] Unexpected error occurred java.lang.IllegalStateException: Failed to resolve to a single NodeRef with para meters (store=workspace:SpacesStore uuid=null path=/app:company_home/cm:GL_x0020 _TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:_x0031__x 0020_-_x0020_BUDGET/cm:Budget_x0020_2007), found 0 nodes.
found 0 nodes.
<#assign numbers=["0","1","2","3","4","5","6","7","8","9"]> <#– encode string by replacing spaces by their hex unicode value. –> <#–Note : Numerals are not valid at the start of the string so they have to be escaped (ISO 9075) –> <#– Input : string - String - input string –> <#– Output : string - ISO9075 encoded string ( main characters considered) –> <#function encode_unicode string> <#if numbers?seq_contains(string?substring(0,1))> <#return ("_x003"+string?substring(0,1)+"_"+string?substring(1))?replace(" ","_x0020_")> </#if> <#return string?replace(" ","_x0020_")> </#function>
cm:1_x0020_-_x0020_BUDGET
cm:_x0031__x0020_-_x0020_BUDGET
/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}GL Trade/{http://www.alfresco.org/model/content/1.0}Head Quarter Shared Services/{http://www.alfresco.org/model/content/1.0}Finance/{http://www.alfresco.org/model/content/1.0}1 - BUDGET/{http://www.alfresco.org/model/content/1.0}Budget 2007
09:04:45,113 DEBUG [org.alfresco.repo.webservice.Utils] Resolving path: /app:com pany_home/cm:GL_x0020_TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm :Finance/cm:_x0031__x0020_-_x0020_BUDGET/cm:Budget_x0020_2007 09:04:45,124 ERROR [org.alfresco.repo.webservice.accesscontrol.AccessControlWebS ervice] Unexpected error occurred java.lang.IllegalStateException: Failed to resolve to a single NodeRef with para meters (store=workspace:SpacesStore uuid=null path=/app:company_home/cm:GL_x0020 _TRADE/cm:Head_x0020_Quarter_x0020_Shared_x0020_Services/cm:Finance/cm:_x0031__x 0020_-_x0020_BUDGET/cm:Budget_x0020_2007), found 0 nodes.
import org.alfresco.webservice.util.ISO9075; public String BuildAlfrescoPath(String javaPath) { String inter=new String(""); String rootPath="/app:company_home"; String alfPath; // Il faut transformer javapath avant lui avoir rajoute cm: et app: // attention on ne touche pas aux slash // donc on va de / en / pour construire notre nouvelle string: int pos=0; int trouve=0,length=javaPath.length(); while(pos<length && (trouve=javaPath.indexOf("/",pos))>=pos){ if(trouve>pos){ inter+="/"; alfPath=javaPath.substring(pos,trouve); inter+=ISO9075.encode(alfPath); } pos=trouve+1; } if(trouve==0){ // le cas de bord ou javaPath vaut / return(rootPath); } // ne pas oublier le bout de string apres le dernier / length=inter.length(); if(trouve<0){ inter+="/"; alfPath=javaPath.substring(pos); inter+=ISO9075.encode(alfPath); } else{// on a trouve un / a la fin? // Attention, a cause de la ligne qui suit il faut enlever le dernier / si il y en a un if(inter.substring(length-1).equals("/")==true){ inter=inter.substring(0,inter.length()-2); } } inter= inter.replace("/", MyConstants.MYCM); alfPath=rootPath+inter; return alfPath; }
MyConstants.MYCM="/cm:";