[MAGNOLIA-1841] activation: workflow runs into ClassCastException because WorkItemContext is not a UserContext Created: 15/Nov/07  Updated: 23/Jan/13  Resolved: 15/Nov/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.5 RC1
Fix Version/s: 3.5 RC1

Type: Bug Priority: Blocker
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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
Date of First Response:

 Description   

... it failed. See stacktrace below.
Doesn't seem to be related to the fixes I've made for openwfe-1.7.2.1, so I commited the pom changes anyway.

cheers

greg
ERROR info.magnolia.module.admininterface.commands.ActivationCommand ActivationCommand.java(execute:105) 15.11.2007 01:24:15 can't activate
java.lang.ClassCastException: info.magnolia.module.workflow.WorkItemContext
at info.magnolia.context.MgnlContext.getUser(MgnlContext.java:92)
at info.magnolia.module.admininterface.commands.BaseActivationCommand.getSyndicator(BaseActivationCommand.java:60)
at info.magnolia.module.admininterface.commands.ActivationCommand.execute(ActivationCommand.java:101)



 Comments   
Comment by Philipp Bracher [ 15/Nov/07 ]

I removed deprecated marker from Context.getUser() and AbstractContext.getUser() calls now Security.getSystemUser() by default.

Generated at Mon Feb 12 03:30:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.