[PUBTSKCONF-3] auto-approve as a subgroup is not working with SSO module Created: 05/Dec/21  Updated: 26/Apr/23  Resolved: 26/Apr/23

Status: Closed
Project: Publication Task Configuration
Component/s: None
Affects Version/s: 6.1.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Richard Gange
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75h
Original Estimate: Not Specified

Attachments: Text File publish.log    
Issue Links:
dependency
is depended upon by PUBTSKCONF-4 Missing requestor throws null pointer Closed
relation
is related to PUBTSKCONF-2 Allow auto-approve to exist as a subg... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

With SSO user management configured the changes applied in PUBTSKCONF-2 are not working. When trying to get the user the following error is thrown in the logs.

ERROR info.magnolia.workflow.jbpm.humantask.handler.AutoApprovableHumanTaskWorkItemHandler 17.11.2021 15:35:28 -- Could not retrieve task definition. java.lang.NullPointerException: null at info.magnolia.workflow.jbpm.humantask.handler.AutoApprovableHumanTaskWorkItemHandler.executeWorkItem(AutoApprovableHumanTaskWorkItemHandler.java:91) ~[magnolia-publication-task-config-6.1.1.jar:?]

Notes:
The problem stems from not getting the correct user manager when attempting to retrieve the user. We will need to call:

securitySupport.getUserManager("sso-authentication")

then cast it as an SsoUserManager.



 Comments   
Comment by Richard Gange [ 26/Apr/23 ]

A new approach will be created to not rely on user manager. See PUBTSKCONF-5.

Generated at Mon Feb 12 10:32:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.