[IOT-2281] /oic/sec/amacl responding to GET but not to POST 85/20185/3
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Sat, 20 May 2017 18:36:29 +0000 (11:36 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 22 May 2017 04:01:25 +0000 (04:01 +0000)
Until AMS and /amacl functionality is implemented, the /amacl Resource
should not be instantiated as it misleads Clients (including CTT) into
expecting full Specification behavior.

Change-Id: Id542b7a5974cb96ae84e7165326e4d2e8170d5dd
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20185
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/src/resourcemanager.c

index a6d09b7..9b48738 100644 (file)
@@ -107,10 +107,15 @@ OCStackResult InitSecureResources( )
         ret = InitRolesResource();
     }
 #endif // __WITH_DTLS__ || __WITH_TLS__
+#ifndef AMACL_RESOURCE_IMPLEMENTATION_COMPLETE
+    OIC_LOG_V(WARNING, TAG, "%s: /amacl Resource implementation incomplete; not initializing.", __func__);
+#endif // AMACL_RESOURCE_IMPLEMENTATION_COMPLETE
+#ifdef AMACL_RESOURCE_IMPLEMENTATION_COMPLETE
     if(OC_STACK_OK == ret)
     {
         ret = InitAmaclResource();
     }
+#endif // AMACL_RESOURCE_IMPLEMENTATION_COMPLETE
 //#ifdef DIRECT_PAIRING
     if(OC_STACK_OK == ret)
     {