seslabSJU / tinyIoT

7 stars 0 forks source link

Wrong ResponseStatusCode when trying to create a resource named la/ol #4

Closed reinaortega closed 4 months ago

reinaortega commented 5 months ago

Wrong ResponseStatusCode when trying to create a resource named la/ol. It should be 4005 instead of 4105.

For tests: TC_CSE_DMR_CRE_010,TC_CSE_DMR_CRE_011

LAMXkE commented 4 months ago

Should be fixed on commit 84415a4d026e4db0391b40b43d2e888cd24b35a1

reinaortega commented 4 months ago

Still sending 4105 Response Status Code

LAMXkE commented 4 months ago

fixed on 487ed23e5096018e0ab8d53317fb379e88c37722

POST /TinyIoT/ae_test/cnt HTTP/1.1 Accept: application/json X-M2M-RI: 12345 X-M2M-Origin: COrigin Content-Type: application/json;ty=3 X-M2M-RVI: 3 User-Agent: PostmanRuntime/7.36.0 Postman-Token: f1072081-0a03-4845-b6e0-c4dbfd1e2a25 Host: 127.0.0.1:3000 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 83

{ "m2m:cnt": { "rn": "la", "lbl": ["ccc3", "lbl"], "mbs": 16384 } }

HTTP/1.1 405 Method Not Allowed Connection: Close Accept: application/json Content-Type: application/json; charset=utf-8 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: Accept, Accept-Language, Content-Language, Content-Type, X-M2M-Origin, X-M2M-RI, X-M2M-RVI Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS Access-Control-Request-Methods: GET, PUT, POST, DELETE, OPTIONS Content-Length: 40 X-M2M-RSC: 4005 X-M2M-RVI: 3 X-M2M-RI: 12345

{"m2m:dbg": "attribute rn is invalid"}

reinaortega commented 4 months ago

Fix confirmed