[
https://issues.apache.org/jira/browse/SYNCOPE-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitriy B. updated SYNCOPE-1613:
--------------------------------
Description:
After reducing reflection usage in SYNCOPE-1392 *SCHEDULED*, *PULL* and *PUSH*
tasks are having _org.apache.syncope.common.lib.to.SchedTaskTO#getStartAt_ date
instead of start date of last execution when reading the tasks.
{panel:title=Actual Behavior }
[GET
http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{code:javascript}
{
"@class": "org.apache.syncope.common.lib.to.PullTaskTO",
"key": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"start": null,
"end": "2021-01-26T13:06:51.578+0000",
"latestExecStatus": "SUCCESS",
"startAt": null,
"cronExpression": null,
"jobDelegate": null,
"name": "Pull Task Name",
"description": "",
"lastExec": null,
"nextExec": null,
"active": true,
"resource": "Resource Name",
...
"executions": [
{
"start": "2021-01-25T17:01:39.041+0000",
"end": "2021-01-25T17:01:40.488+0000",
"key": "830dc52b-c55f-4376-8dc5-2bc55f837673",
"jobType": "TASK",
"refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"refDesc": "PULL Task DESC",
"status": "SUCCESS",
"message": "[]"
},
...
{
"start": "2021-01-26T13:06:51.391+0000",
"end": "2021-01-26T13:06:51.578+0000",
"key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f",
"jobType": "TASK",
"refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"refDesc": "Task name",
"status": "SUCCESS",
"message": "[]"
}
],
"actions": []
}
{code}
{panel}
{panel:title=Expected Behavior}
[GET
http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{code:javascript}
{
"@class": "org.apache.syncope.common.lib.to.PullTaskTO",
"key": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"start": "2021-01-26T13:06:51.391+0000",
"end": "2021-01-26T13:06:51.578+0000",
"latestExecStatus": "SUCCESS",
"startAt": null,
"cronExpression": null,
"jobDelegate": null,
"name": "Pull Task Name",
"description": "",
"lastExec": "2021-01-26T13:06:51.391+0000",
"nextExec": null,
"active": true,
"resource": "Resource Name",
...
"executions": [
{
"start": "2021-01-25T17:01:39.041+0000",
"end": "2021-01-25T17:01:40.488+0000",
"key": "830dc52b-c55f-4376-8dc5-2bc55f837673",
"jobType": "TASK",
"refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"refDesc": "PULL Task DESC",
"status": "SUCCESS",
"message": "[]"
},
...
{
"start": "2021-01-26T13:06:51.391+0000",
"end": "2021-01-26T13:06:51.578+0000",
"key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f",
"jobType": "TASK",
"refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
"refDesc": "Task name",
"status": "SUCCESS",
"message": "[]"
}
],
"actions": []
}
{code}
{panel}
was:
After reducing reflection usage in SYNCOPE-1392 *SCHEDULED*, *PULL* and *PUSH*
tasks are having _org.apache.syncope.common.lib.to.SchedTaskTO#getStartAt_ date
instead of start date of last execution when reading the tasks.
{panel:title=Actual Behavior }
[GET
http://${syncope-core}/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{ "@class": "org.apache.syncope.common.lib.to.PullTaskTO", "key":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", *"start"*: *null*, "end":
"2021-01-26T13:06:51.578+0000", "latestExecStatus": "SUCCESS", "startAt": null,
"cronExpression": null, "jobDelegate": null, "name": "Pull Task Name",
"description": "", "lastExec": null, "nextExec": null, "active": true,
"resource": "Resource Name", ... "executions": [ { "start":
"2021-01-25T17:01:39.041+0000", "end": "2021-01-25T17:01:40.488+0000", "key":
"830dc52b-c55f-4376-8dc5-2bc55f837673", "jobType": "TASK", "refKey":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "PULL Task DESC", "status":
"SUCCESS", "message": "[]" }, ... { *"start"*:
*"2021-01-26T13:06:51.391+0000"*, "end": "2021-01-26T13:06:51.578+0000", "key":
"f3d306a6-b3e0-4c92-9306-a6b3e0ac920f", "jobType": "TASK", "refKey":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "Task name", "status":
"SUCCESS", "message": "[]" } ], "actions": [] }{panel}
{panel:title=Expected}
[GET
http://${syncope-core}/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{ "@class": "org.apache.syncope.common.lib.to.PullTaskTO", "key":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", *"start"*:
*"2021-01-26T13:06:51.391+0000"*, "end": "2021-01-26T13:06:51.578+0000",
"latestExecStatus": "SUCCESS", "startAt": null, "cronExpression": null,
"jobDelegate": null, "name": "Pull Task Name", "description": "", "lastExec":
"2021-01-26T13:06:51.391+0000", "nextExec": null, "active": true, "resource":
"Resource Name", ... "executions": [ { "start": "2021-01-25T17:01:39.041+0000",
"end": "2021-01-25T17:01:40.488+0000", "key":
"830dc52b-c55f-4376-8dc5-2bc55f837673", "jobType": "TASK", "refKey":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "PULL Task DESC", "status":
"SUCCESS", "message": "[]" }, ... { *"start"*:
*"2021-01-26T13:06:51.391+0000"*, "end": "2021-01-26T13:06:51.578+0000", "key":
"f3d306a6-b3e0-4c92-9306-a6b3e0ac920f", "jobType": "TASK", "refKey":
"1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "Task name", "status":
"SUCCESS", "message": "[]" } ], "actions": [] }{panel}
> startAt date is set to start field for SCHEDULED, PULL and PUSH TaskTOs
> -----------------------------------------------------------------------
>
> Key: SYNCOPE-1613
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1613
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1.3
> Reporter: Dmitriy B.
> Priority: Major
>
> After reducing reflection usage in SYNCOPE-1392 *SCHEDULED*, *PULL* and
> *PUSH* tasks are having
> _org.apache.syncope.common.lib.to.SchedTaskTO#getStartAt_ date instead of
> start date of last execution when reading the tasks.
>
> {panel:title=Actual Behavior }
> [GET
> http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
> {code:javascript}
> {
> "@class": "org.apache.syncope.common.lib.to.PullTaskTO",
> "key": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "start": null,
> "end": "2021-01-26T13:06:51.578+0000",
> "latestExecStatus": "SUCCESS",
> "startAt": null,
> "cronExpression": null,
> "jobDelegate": null,
> "name": "Pull Task Name",
> "description": "",
> "lastExec": null,
> "nextExec": null,
> "active": true,
> "resource": "Resource Name",
> ...
> "executions": [
> {
> "start": "2021-01-25T17:01:39.041+0000",
> "end": "2021-01-25T17:01:40.488+0000",
> "key": "830dc52b-c55f-4376-8dc5-2bc55f837673",
> "jobType": "TASK",
> "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "refDesc": "PULL Task DESC",
> "status": "SUCCESS",
> "message": "[]"
> },
> ...
> {
> "start": "2021-01-26T13:06:51.391+0000",
> "end": "2021-01-26T13:06:51.578+0000",
> "key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f",
> "jobType": "TASK",
> "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "refDesc": "Task name",
> "status": "SUCCESS",
> "message": "[]"
> }
> ],
> "actions": []
> }
> {code}
> {panel}
>
> {panel:title=Expected Behavior}
> [GET
> http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
>
> {code:javascript}
> {
> "@class": "org.apache.syncope.common.lib.to.PullTaskTO",
> "key": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "start": "2021-01-26T13:06:51.391+0000",
> "end": "2021-01-26T13:06:51.578+0000",
> "latestExecStatus": "SUCCESS",
> "startAt": null,
> "cronExpression": null,
> "jobDelegate": null,
> "name": "Pull Task Name",
> "description": "",
> "lastExec": "2021-01-26T13:06:51.391+0000",
> "nextExec": null,
> "active": true,
> "resource": "Resource Name",
> ...
> "executions": [
> {
> "start": "2021-01-25T17:01:39.041+0000",
> "end": "2021-01-25T17:01:40.488+0000",
> "key": "830dc52b-c55f-4376-8dc5-2bc55f837673",
> "jobType": "TASK",
> "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "refDesc": "PULL Task DESC",
> "status": "SUCCESS",
> "message": "[]"
> },
> ...
> {
> "start": "2021-01-26T13:06:51.391+0000",
> "end": "2021-01-26T13:06:51.578+0000",
> "key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f",
> "jobType": "TASK",
> "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f",
> "refDesc": "Task name",
> "status": "SUCCESS",
> "message": "[]"
> }
> ],
> "actions": []
> }
> {code}
>
> {panel}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)