Bug 553431 - notification content has incorrect format
Summary: notification content has incorrect format
Status: UNCONFIRMED
Alias: None
Product: OM2M
Classification: IoT
Component: Platform (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-25 11:50 EST by Laurent Velez CLA
Modified: 2019-11-25 11:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Velez CLA 2019-11-25 11:50:28 EST
In the Notification content, OM2M puts the m2m: namespace prefix on all the attributes which should not be the case according to the oneM2M specifications TS-0001 and TS-0004. Only sgn and cin should have this m2m prefix.

current OM2M Notification:
{
   "m2m:sgn" : {
      "m2m:nev" : {
         "m2m:rep" : {
            "m2m:cin" : {
               "rn" : "cin_554565889",
               "ty" : 4,
               "ri" : "/mn-cse-home/cin-554565889",
               "pi" : "/mn-cse-home/cnt-838318773",
               "ct" : "20190616T143326",
               "lt" : "20190616T143326",
               "st" : 0,
               "cnf" : "text/plain:0",
               "cs" : 1,
               "con" : "1"
            }
         },
         "m2m:rss" : 1
      },
      "m2m:sud" : false,
      "m2m:sur" : "/mn-cse-home/sub-330545267"
   }
}

Notification as defined in the oneM2M standard:
{
   "m2m:sgn" : {
      "nev" : {
         "rep" : {
            "m2m:cin" : {
               "rn" : "cin_554565889",
               "ty" : 4,
               "ri" : "/mn-cse-home/cin-554565889",
               "pi" : "/mn-cse-home/cnt-838318773",
               "ct" : "20190616T143326",
               "lt" : "20190616T143326",
               "st" : 0,
               "cnf" : "text/plain:0",
               "cs" : 1,
               "con" : "1"
            }
         },
         "rss" : 1
      },
      "sud" : false,
      "sur" : "/mn-cse-home/sub-330545267"
   }
}