Fix ALF-2401: Unable to map content models with default namespace prefix to CMIS

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19838 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-04-13 13:08:29 +00:00
parent 89ea49e48e
commit 8652b3c8df

View File

@@ -355,7 +355,7 @@ public class CMISMapping implements InitializingBean
{
throw new AlfrescoRuntimeException("Malformed type id '" + typeId + "'; discriminator " + typeId.charAt(0) + " unknown");
}
QName typeQName = QName.resolveToQName(serviceRegistry.getNamespaceService(), typeId.substring(2));
QName typeQName = QName.createQName(typeId.substring(2), serviceRegistry.getNamespaceService());
// Construct CMIS Type Id
return new CMISTypeId(scope, typeQName, typeId, typeQName);