Commit 0d08fbe7 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Modifications to allow POA validation from IUT


Signed-off-by: Miguel Angel Reina Ortega's avatarreinaortega <miguelangel.reinaortega@etsi.org>
parent 5b68654d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment