Scheduler AddTask false positive request success
Daemon returns ok response to AddTask request with non iso 8601 datetime format, but does not create a scheduler task file. It seems that the scheduler code detects error in the request, but returns successful response.
AddTask request:
{
"mType": "mngScheduler_AddTask",
"data": {
"req": {
"clientId": "SchedulerMessaging",
"taskId": 1601384573748,
"task": [
{
"message": {
"mType": "iqrfRaw",
"data": {
"msgId": "testRaw",
"timeout": 1000,
"req": {
"rData": "00.00.06.03.FF.FF"
},
"returnVerbose": true
}
},
"messaging": "WebsocketMessaging"
}
],
"timeSpec": {
"cronTime": [
"",
"",
"",
"",
"",
"",
""
],
"periodic": false,
"period": 0,
"exactTime": true,
"startTime": "10:00:00"
},
"persist": true
},
"returnVerbose": true,
"msgId": "87dbcbfe-6be2-483e-80df-1935a42d0af0"
}
}
AddTask response:
{
"mType": "mngScheduler_AddTask",
"data": {
"msgId": "87dbcbfe-6be2-483e-80df-1935a42d0af0",
"rsp": {
"clientId": "SchedulerMessaging",
"taskId": 1573589862
},
"insId": "iqrfgd2-default",
"statusStr": "ok",
"status": 0
}
}
However, task file is not created in filesystem.
Edited by Karel Hanák