-
Notifications
You must be signed in to change notification settings - Fork 29
Description
When executing the GET request of STH API for return historic information for non existing attribute, it returns 200 OK
{
"contextResponses": [
{
"contextElement": {
"attributes": [
{
"name": "splid",
"values": []
}
],
"id": "Room5",
"isPattern": false,
"type": "Room"
},
"statusCode": {
"code": "200",
"reasonPhrase": "OK"
}
}
]
}
The request is made by using
http://sth-host/STH/v1/contextEntities/type/Room/id/Room5/attributes/splid?hLimit=4&hOffset=0
and following are the logs:
time=2019-06-05T01:24:27.970Z | lvl=DEBUG | corr=a43fb9b1-ed50-4de4-9960-b9bace773ce5 | trans=a43fb9b1-ed50-4de4-9960-b9bace773ce5 | op=OPER_STH_GET | from=n/a | srv=testdb | subsrv=/testservicepath | comp=STH | msg=No raw data available for the request: /STH/v1/contextEntities/type/Room/id/Room5/attributes/splid?hLimit=4&hOffset=0
I have made subscriptions for two attributes that is pressure and temperature ,but when I make request for non existing attribute splid it give 200 OK.
But it should return 404 Not Found as the attribute does not exist for which the request is made.