DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44101>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44101

           Summary: ArrayIndexOutOfBoundsException when doing authoring-
                    >live with customized workflow.
           Product: Lenya
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Workflow
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I have customized the workflow in a Lenya 2.0 RC6 deployment here, such that 
it is possible to directly publish a document in the authoring state if one 
can both submit and publish (i.e. has the appropriate roles).

However, this fails in o.a.l.cms.workflow.usecases.Publish.sendNotification 
(module workflow, line 331) if the page has not already undergone at least one 
workflow transition and "notify submitters" is enabled, throwing 
ArrayIndexOutOfBoundsException because versions.length (is 1) - 2 = -1.

I recommend returning immediately before this if versions.length < 2.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to