You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ma...@apache.org on 2008/08/07 16:25:26 UTC
svn commit: r683621 - /webservices/axis2/trunk/c/neethi/src/engine.c
Author: manjula
Date: Thu Aug 7 07:25:25 2008
New Revision: 683621
URL: http://svn.apache.org/viewvc?rev=683621&view=rev
Log:
fixing normalizing policy reference.
Modified:
webservices/axis2/trunk/c/neethi/src/engine.c
Modified: webservices/axis2/trunk/c/neethi/src/engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/engine.c?rev=683621&r1=683620&r2=683621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/engine.c (original)
+++ webservices/axis2/trunk/c/neethi/src/engine.c Thu Aug 7 07:25:25 2008
@@ -1086,6 +1086,12 @@
else if (component_type == OPERATOR_TYPE_REFERENCE)
{
+
+ /* If the operator is a policy reference we will
+ * extract the relevent policy from the uri and
+ * normalize as we are doing for a neethi_policy
+ * object */
+
neethi_reference_t *policy_ref = NULL;
axis2_char_t *uri = NULL;
neethi_policy_t *policy = NULL;
@@ -1107,6 +1113,14 @@
"[neethi] Uri not specified");
return NULL;
}
+
+ if(!registry)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+ "[neethi] Cannot resolve the reference.Registry Not provided");
+ return NULL;
+ }
+
policy = neethi_registry_lookup(registry, env, uri);
if (!policy)
{