[midPoint-git] [Evolveum/midpoint] 19b2db: Fix error handling in task-related REST methods

Pavol Mederly mederly at evolveum.com
Tue Oct 23 16:51:52 CEST 2018


  Branch: refs/heads/support-3.8
  Home:   https://github.com/Evolveum/midpoint
  Commit: 19b2dbeb90f784d83cf83b38548fff53a9497c97
      https://github.com/Evolveum/midpoint/commit/19b2dbeb90f784d83cf83b38548fff53a9497c97
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-10-23 (Tue, 23 Oct 2018)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/ObjectTypes.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/TaskService.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelCrudService.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelRestService.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/TaskManager.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/JobExecutor.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/work/workers/WorkersManager.java
    M repo/task-quartz-impl/src/test/java/com/evolveum/midpoint/task/quartzimpl/TestQuartzTaskManagerContract.java
    M repo/task-quartz-impl/src/test/java/com/evolveum/midpoint/task/quartzimpl/TestWorkDistribution.java
    M testing/rest/src/test/java/com/evolveum/midpoint/testing/rest/TestAbstractRestService.java

  Log Message:
  -----------
  Fix error handling in task-related REST methods

REST operates (suspends, resumes, schedules, deletes) single task
at a time and expects appropriate exception messages if something goes
wrong. Task module has methods that operate on tasks collections, hiding
any exceptions encountered.

The easiest solution is to introduce single-task exception-throwing
methods directly into the task module.

(cherry picked from commit 63bd9ebe87f994b4cebf36cbca77c99ccb2deddb)



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the midPoint-svn mailing list