From 0d08fbe71e58207c933e57aecc7fa7680bd10e26 Mon Sep 17 00:00:00 2001 From: reinaortega <miguelangel.reinaortega@etsi.org> Date: Thu, 2 Apr 2020 10:09:39 +0200 Subject: [PATCH] Modifications to allow POA validation from IUT Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org> --- LibOneM2M/OneM2M_Functions.ttcn | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index d6a3488..a01ca56 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -4557,6 +4557,9 @@ module OneM2M_Functions { } else if (v_cleanedURI == f_getResourceId(vc_localResourcesList[vc_cSEBaseIndex].resource)) { log("Non Hierarchical method: " & v_cleanedURI); v_resourceIndex := vc_cSEBaseIndex; + } else if (p_receivedURI == vc_localResourcesList[vc_cSEBaseIndex].resource.cSEBase.cSE_ID) { + log("Non Hierarchical method: " & p_receivedURI); + v_resourceIndex := vc_cSEBaseIndex; } } log("Resource index found: " & int2str(v_resourceIndex)); @@ -5166,13 +5169,13 @@ module OneM2M_Functions { } } else if (f_isScopeSpRelative(p_resourceAddress)){ - if(v_nbOfSlashes == 2 ) { + if((v_nbOfSlashes == 2 ) or (v_nbOfSlashes == 1 )) { return true; } else { return false; } } else if (f_isScopeAbsolute(p_resourceAddress)){ - if(v_nbOfSlashes == 4 ) { + if((v_nbOfSlashes == 4 ) or (v_nbOfSlashes == 3 )){ return true; } else { return false; @@ -5678,8 +5681,8 @@ module OneM2M_Functions { for (i := v_length - 1; i>=0; i := i-1){ if(p_resourceID[i]=="/"){ //log("result: " & result); - return result; - } + return result; + } else{ result := p_resourceID[i] & result; } -- GitLab