diff --git a/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WADLProcessor.java b/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WADLProcessor.java index 563555924..19737b93d 100644 --- a/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WADLProcessor.java +++ b/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WADLProcessor.java @@ -271,13 +271,13 @@ public String importWADLToRegistry(RequestContext requestContext, String commonL } String actualPath; - if(commonLocation != null){ - actualPath = commonLocation + namespaceSegment + version + "/" + wadlName; - } else { - actualPath = RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH + - commonWADLLocation + namespaceSegment + version + "/" + wadlName; +// if(commonLocation != null){ +// actualPath = commonLocation + namespaceSegment + version + "/" + wadlName; +// } else { +// actualPath = RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH + +// commonWADLLocation + namespaceSegment + version + "/" + wadlName; actualPath = getWadlLocation(requestContext,wadlElement,wadlName,version); - } +// } if (resource.getProperty(CommonConstants.SOURCE_PROPERTY) == null){ resource.setProperty(CommonConstants.SOURCE_PROPERTY, CommonConstants.SOURCE_AUTO); }