Program: 60430
Project: 60430
Buggy source:
@Override public ActionsPanel<WorkflowFormTO> getActions(final IModel<WorkflowFormTO> model){
  final ActionsPanel<WorkflowFormTO> panel=super.getActions(model);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      claimForm(model.getObject().getTaskId());
      ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
      target.add(container);
    }
  }
,ActionLink.ActionType.CLAIM,StandardEntitlement.WORKFLOW_FORM_CLAIM);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
      manageApprovalModal.setFormModel(formModel);
      target.add(manageApprovalModal.setContent(new ApprovalModal(manageApprovalModal,pageRef,model.getObject()){
        private static final long serialVersionUID=5546519445061007248L;
        @Override public void onSubmit(        final AjaxRequestTarget target,        final Form<?> form){
          try {
            super.onSubmit(target,form);
            ApprovalDirectoryPanel.this.getTogglePanel().close(target);
          }
 catch (          SyncopeClientException e) {
            SyncopeConsoleSession.get().error(getString(Constants.ERROR) + "String_Node_Str" + e.getMessage());
          }
          ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
        }
      }
));
      manageApprovalModal.header(new Model<>(getString("String_Node_Str",new Model<>(model.getObject()))));
      manageApprovalModal.show(true);
    }
    @Override protected boolean statusCondition(    final WorkflowFormTO modelObject){
      return SyncopeConsoleSession.get().getSelfTO().getUsername().equals(model.getObject().getOwner());
    }
  }
,ActionLink.ActionType.MANAGE_APPROVAL,StandardEntitlement.WORKFLOW_FORM_READ);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
      modal.setFormModel(formModel);
      final WorkflowFormTO formTO=formModel.getObject();
      final UserTO newUserTO;
      final UserTO previousUserTO;
      if (formTO.getUserPatch() == null) {
        newUserTO=formTO.getUserTO();
        previousUserTO=null;
      }
 else       if (formTO.getUserTO() == null) {
        previousUserTO=new UserTO();
        previousUserTO.setKey(formTO.getUserPatch().getKey());
        newUserTO=AnyOperations.patch(previousUserTO,formTO.getUserPatch());
      }
 else {
        formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
        newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
        previousUserTO=formTO.getUserTO();
      }
      AjaxWizard.EditItemActionEvent<UserTO> editItemActionEvent=new AjaxWizard.EditItemActionEvent<>(newUserTO,target);
      editItemActionEvent.forceModalPanel(new ApprovalUserWizardBuilder(target,formModel.getObject(),previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),FormLayoutInfoUtils.fetch(Collections.singletonList(AnyTypeKind.USER.name())).getLeft(),pageRef).build(BaseModal.CONTENT_ID,AjaxWizard.Mode.EDIT));
      send(ApprovalDirectoryPanel.this,Broadcast.EXACT,editItemActionEvent);
    }
    @Override protected boolean statusCondition(    final WorkflowFormTO modelObject){
      return SyncopeConsoleSession.get().getSelfTO().getUsername().equals(model.getObject().getOwner());
    }
  }
,ActionLink.ActionType.EDIT_APPROVAL,StandardEntitlement.WORKFLOW_FORM_SUBMIT);
  return panel;
}

Fixed version (ground truth):
@Override public ActionsPanel<WorkflowFormTO> getActions(final IModel<WorkflowFormTO> model){
  final ActionsPanel<WorkflowFormTO> panel=super.getActions(model);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      claimForm(model.getObject().getTaskId());
      SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED));
      ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
      target.add(container);
    }
  }
,ActionLink.ActionType.CLAIM,StandardEntitlement.WORKFLOW_FORM_CLAIM);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
      manageApprovalModal.setFormModel(formModel);
      target.add(manageApprovalModal.setContent(new ApprovalModal(manageApprovalModal,pageRef,model.getObject()){
        private static final long serialVersionUID=5546519445061007248L;
        @Override public void onSubmit(        final AjaxRequestTarget target,        final Form<?> form){
          try {
            super.onSubmit(target,form);
            ApprovalDirectoryPanel.this.getTogglePanel().close(target);
          }
 catch (          SyncopeClientException e) {
            SyncopeConsoleSession.get().error(getString(Constants.ERROR) + "String_Node_Str" + e.getMessage());
          }
          ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
        }
      }
));
      manageApprovalModal.header(new Model<>(getString("String_Node_Str",new Model<>(model.getObject()))));
      manageApprovalModal.show(true);
    }
    @Override protected boolean statusCondition(    final WorkflowFormTO modelObject){
      return SyncopeConsoleSession.get().getSelfTO().getUsername().equals(model.getObject().getOwner());
    }
  }
,ActionLink.ActionType.MANAGE_APPROVAL,StandardEntitlement.WORKFLOW_FORM_READ);
  panel.add(new ActionLink<WorkflowFormTO>(){
    private static final long serialVersionUID=-3722207913631435501L;
    @Override public void onClick(    final AjaxRequestTarget target,    final WorkflowFormTO ignore){
      final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
      modal.setFormModel(formModel);
      final WorkflowFormTO formTO=formModel.getObject();
      final UserTO newUserTO;
      final UserTO previousUserTO;
      if (formTO.getUserPatch() == null) {
        newUserTO=formTO.getUserTO();
        previousUserTO=null;
      }
 else       if (formTO.getUserTO() == null) {
        previousUserTO=new UserTO();
        previousUserTO.setKey(formTO.getUserPatch().getKey());
        newUserTO=AnyOperations.patch(previousUserTO,formTO.getUserPatch());
      }
 else {
        formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
        newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
        previousUserTO=formTO.getUserTO();
      }
      AjaxWizard.EditItemActionEvent<UserTO> editItemActionEvent=new AjaxWizard.EditItemActionEvent<>(newUserTO,target);
      editItemActionEvent.forceModalPanel(new ApprovalUserWizardBuilder(formModel.getObject(),previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),FormLayoutInfoUtils.fetch(Collections.singletonList(AnyTypeKind.USER.name())).getLeft(),pageRef).build(BaseModal.CONTENT_ID,AjaxWizard.Mode.EDIT));
      send(ApprovalDirectoryPanel.this,Broadcast.EXACT,editItemActionEvent);
    }
    @Override protected boolean statusCondition(    final WorkflowFormTO modelObject){
      return SyncopeConsoleSession.get().getSelfTO().getUsername().equals(model.getObject().getOwner());
    }
  }
,ActionLink.ActionType.EDIT_APPROVAL,StandardEntitlement.WORKFLOW_FORM_SUBMIT);
  return panel;
}