[MAGNOLIA-1096] Error setting a non default workItem edit dialog Created: 29/Sep/06  Updated: 23/Jan/13  Resolved: 27/Oct/06

Status: Closed
Project: Magnolia
Component/s: workflow
Affects Version/s: 3.0 RC3
Fix Version/s: 3.0 RC4

Type: Bug Priority: Major
Reporter: Filippo Fratoni Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP, Java1.5.0_08,Firefox1.5.0.07


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   

Assigning a different edit dialog for my workflow setting an attribute in my workitem with value WorkflowConstants.ATTRIBUTE_EDIT_DIALOG result in the followign exception


java.lang.ClassCastException: openwfe.org.engine.workitem.StringAttribute
at info.magnolia.module.workflow.inbox.Inbox$1.onSelect(Inbox.java:102)


The following piece fail due to on incoming StringAttribute value where expected String

String editDialog = StringUtils.defaultIfEmpty((String) list
.getIteratorValue(WorkflowConstants.ATTRIBUTE_EDIT_DIALOG), WorkflowConstants.DEFAULT_EDIT_DIALOG);

Filippo



 Comments   
Comment by Chris Miner [ 04/Oct/06 ]

This is a duplicate of MAGNOLIA-1089.

Comment by Fabrizio Giustina [ 06/Oct/06 ]

see MAGNOLIA-1096
fixed in svn

Comment by Magnolia International [ 27/Oct/06 ]

reopening to change fix version to rc4

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