Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Problem in Custom Access Control Policy Creation(Create Custom Access Control Policy, creation request originate from MN-AE)
icon5.gif  Problem in Custom Access Control Policy Creation [message #1752163] Thu, 19 January 2017 11:28
Sabyasachi Majumdar is currently offline Sabyasachi MajumdarFriend
Messages: 1
Registered: January 2017
Junior Member
Hello Everyone,

I am developing an On2M2M based application over OM2M, for that I am using Two CSE i.e. MN-CSE and IN-CSE.
Three AEs with Resource Names "light_ae_1","light_ae_2" and "gateway_ae" are registered with MN-CSE and another AE with Resource Name "in_ae" is registered with IN-CSE.
After registering all Four AEs I am sending an AccessControlPolicy creation request with following details:

Target URI - http://MN-CSE-IP:MN-CSE-PORT/~/mn-cse/mn-name?rcn=0
Origin Header - Cgateway_ae
Request Body -
{
"m2m:acp":
{
"pv":
{
"acr":
[
{
"acor":
["Cgateway_ae","Clight_ae_1","Clight_ae_2","/in-cse/Cin_ae"],
"acop":63,
"acco":[]
}
]
},
"pvs":
{
"acr":
[
{
"acor":
["gateway_ae"],
"acop":51,
"acco":[]
}
]
},
"et":"20200101T000000",
"rn":"gateway_acp"
}
}


But the MN-CSE responding with Response
"Unknown or unauthorized originator"

Following is the detail server log of MN-CSE:

[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [AccessControlPolicyController]
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Unknown or unauthorized originator
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4103,
requestIdentifier=mn-cse-12345,
content=Unknown or unauthorized originator,
to=Cgateway_ae,
from=/mn-cse,
contentType=text/plain,
]


Please tell me where AccessControlPolicy creation goes wrong.
Previous Topic:Supports for mgmtCmd
Next Topic:Dynamically discovering and connecting remote CSEs and AEs.
Goto Forum:
  


Current Time: Mon Oct 14 12:57:10 GMT 2024

Powered by FUDForum. Page generated in 0.03566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top