Project

General

Profile

Actions

Defect #3012

closed

Role approval fails after identity username is changed

Added by Luboš Čábelka over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Peter Štrunc
Category:
Workflow
Target version:
Start date:
12/02/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Affected version: 11.2.2 (probably all since 7.8.0)

Steps to reproduce:
Create role with approval workflow approve-role-by-guarantee.
Assign role to identity.
Change identity username.
Log in as approver.
Approve task.
Task is not approved, Internal server error message is shown.

Information in server log.
org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: java.lang.NullPointerException: Cannot invoke method getId() on null object

Actions #1

Updated by Luboš Čábelka over 2 years ago

  • Assignee changed from Luboš Čábelka to Peter Štrunc
  • % Done changed from 0 to 80

Fixed loading applicant by uuid instead of username.
Added test for this scenario.

Commit: https://github.com/bcvsolutions/CzechIdMng/commit/1d1123143bb031a5bc4df1293ac340dd3fc52687
Peter can you do review please?

Actions #2

Updated by Peter Štrunc over 2 years ago

  • Status changed from In Progress to Needs feedback
Actions #3

Updated by Peter Štrunc about 2 years ago

  • Status changed from Needs feedback to Resolved
  • % Done changed from 80 to 100

LGTM thanks. I merged it to develop here https://github.com/bcvsolutions/CzechIdMng/pull/161

Actions #4

Updated by Peter Štrunc about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF