]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5012: Tenant unqualify the docType prior to using it to construct the collecti...
authorAron Roberts <aron@socrates.berkeley.edu>
Wed, 30 May 2012 22:48:04 +0000 (15:48 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Wed, 30 May 2012 22:48:04 +0000 (15:48 -0700)
services/imports/service/src/main/java/org/collectionspace/services/imports/TemplateExpander.java

index f8d05713802f9279a92815529754e5364350b1fc..3c7aa9c2d0b3d153799aab77a0fdc05be3da7972 100644 (file)
@@ -158,8 +158,9 @@ public class TemplateExpander {
         // We may have been supplied with the tenant-qualified name
         // of an extension to a document type, and thus need to
         // get the base document type name.
+        docType = ServiceBindingUtils.getUnqualifiedTenantDocType(docType);
         ServiceBindingType sb =
-            tReader.getServiceBindingForDocType(tenantId, ServiceBindingUtils.getUnqualifiedTenantDocType(docType));
+            tReader.getServiceBindingForDocType(tenantId, docType);        
 
         String serviceCategory = sb.getType();
         String uri = "";