Hi Robert, hi list,
Selon Robert Goene <[EMAIL PROTECTED]>:
> Thanks, Annie.
>
> I have applied the patch and everything seems to work fine. This is not
> very satisfactory for me yet, because i could not reproduce the strange
> behaviour in a proper fashion. It just went wrong from time to time. I
> think i'll just wait and see what happens.
> Do you happen to have a way to reproduce this bug and test the patch?
When you have this code :
<transition source="authoring" destination="trash">
<event id="delete"/>
<condition
class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
<assign variable="is_live" value="false"/>
</transition>
without the patch : if you look at the top of the page and see the document
statement, being in the site-tib of the authoring view, you can see easily what
happens.
If you have
authoring | live statetement : file/delete is active
and it is no more with the patch
In my publications, i can reproduce the bug, as soon as i comment the patch (the
new condition). My version of lenya is 1.2.3.
Hope this helps.
Kind regards. annie
>
> Kind regards, Robert
>
> Annie Dumont wrote:
> > Hi Robert, hi Andreas, hi all,
> >
> > Andreas Hartmann a écrit :
> >
> >> Robert Goene wrote:
> >>
> >>> Hi,
> >>>
> >>> Some of my clients are experiencing problems with the 1.2.1 version
> >>> of Lenya: when a document is deleted without deactivating it,
> >>
> >>
> >>
> >> That shouldn't be possible. Maybe there's a problem with the workflow
> >> configuration? If deleting without deactivating is allowed, the
> >> problem you describe is inevitable.
> >
> >
> >
> > I had the same problem with my lenya version 1.2.3.
> > See the file [your_publication]/config/workflow/workflow.xml
> >
> > If you can delete without desactivating maybe you have these lines :
> >
> > <transition source="authoring" destination="trash">
> > <event id="delete"/>
> > <condition
> > class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
> > <assign variable="is_live" value="false"/>
> > </transition>
> >
> > Nowhere it is said that the the is_live parameter has to be at false.
> >
> > So instead of the previous code insert another condition :
> >
> > <transition source="authoring" destination="trash">
> > <event id="delete"/>
> > *<condition
> > class="org.apache.lenya.workflow.impl.BooleanVariableCondition">
> > is_live = false
> > </condition> *
> > <condition
> > class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
> > <assign variable="is_live" value="false"/>
> > </transition>
> >
> > With this my problem was fixed.
> > For more explanations see the workflow configuration page :
> > http://lenya.apache.org/1_2_x/components/workflow/configuration.html
> >
> > Kind regards, annie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]