Actions
Defect #1327
closedEdit LRT that has defined cron trigger doesn't work
Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Long running task
Target version:
Start date:
10/16/2018
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
When I try edit LRT (for example I want edit description) with cron trigger. Backend return 405 code
{ "_errors" : [ { "id" : "06e01585-e815-4954-9922-95e341b92921", "creation" : "2018-10-16T19:54:15.672Z", "statusEnum" : "METHOD_NOT_ALLOWED", "message" : "Could not read document: Could not resolve type id 'CronTaskTrigger' into a subtype of [simple type, class eu.bcvsolutions.idm.core.scheduler.api.dto.AbstractTaskTrigger]: known type ids = [AbstractTaskTrigger]\n at [Source: java.io.PushbackInputStream@33e32a79; line: 1, column: 236] (through reference chain: eu.bcvsolutions.idm.core.scheduler.api.dto.Task[\"triggers\"]->java.util.ArrayList[0]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'CronTaskTrigger' into a subtype of [simple type, class eu.bcvsolutions.idm.core.scheduler.api.dto.AbstractTaskTrigger]: known type ids = [AbstractTaskTrigger]\n at [Source: java.io.PushbackInputStream@33e32a79; line: 1, column: 236] (through reference chain: eu.bcvsolutions.idm.core.scheduler.api.dto.Task[\"triggers\"]->java.util.ArrayList[0])", "parameters" : { }, "module" : "core", "statusCode" : 405, "status" : "METHOD_NOT_ALLOWED" } ] }
For now I haven't log from backend. Other LRT is editable.
Workaround: delete LRT and create one.
Affected versions 8.1.7 -- 9.1.0.
The ticket was solved in current develop branch.
Related issues
Updated by Ondřej Kopr about 6 years ago
- Assignee changed from Ondřej Kopr to Radek Tomiška
The issue was solved in current develop.
Updated by Radek Tomiška about 6 years ago
- Related to Task #1158: Long running task: use form definition for configuration added
Updated by Radek Tomiška about 6 years ago
- Status changed from New to Closed
- Target version set to Morganite (9.2.2)
- % Done changed from 0 to 100
I'm noticed this issue, when #1158 was implemented - so is fixed from 9.2.0.
Note: Use deleting the trigger only, when task has to be updated as workaround, if needed.
Actions