Hi!Using the WS I can not create a folder which name starts with a number [0-9] as in "2007"…Is this a known limitation or i'm doing some thing wrong?I've blantely ripped off the method code from this forum (very thks to the original author!
)
Store store = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Reference reference = new Reference(store, null, path);
ParentReference parentReference = new ParentReference(store,
reference.getUuid(),
reference.getPath(),
Constants.ASSOC_CONTAINS,
Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, name));
NamedValue[] properties = new NamedValue[]{Utils.createNamedValue(Constants.PROP_NAME, name)};
CMLCreate create = new CMLCreate("1", parentReference, null, null,null, Constants.TYPE_FOLDER, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
repositoryService.update(cml);
the exception i get is this one:faultDetail:
{http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>Error executing xpath:
xpath: /app:company_home/cm:yyy/cm:zzz/cm:ttt/cm:rrr/cm:2007</ns1:message>
{http://xml.apache.org/axis/}exceptionName
rg.alfresco.repo.webservice.repository.RepositoryFault
{http://xml.apache.org/axis/}stackTrace:
at org.alfresco.repo.webservice.repository.RepositoryWebService.update(RepositoryWebService.java:509)
at sun.reflect.GeneratedMethodAccessor534.invoke(Unknown Source)
Does anybody have any idea how to solve this? :?: