[ 
https://jira.nuxeo.com/browse/NXS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anahide Tchertchian updated NXS-327:
------------------------------------

    Priority: Minor  (was: Blocker)

> simultaneous use of Document Modified Event and Update Property on 
> file:filename does not work
> ----------------------------------------------------------------------------------------------
>
>                 Key: NXS-327
>                 URL: https://jira.nuxeo.com/browse/NXS-327
>             Project: Nuxeo Studio
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Walid Hajeri
>             Fix For: 2.x
>
>
> I have a use case where I want to update a file name (an uploaded blob) after 
> a modification of the associated document. The new file name must take in 
> account the old one, for example we want it to be renamed from a "hello.doc" 
> to "NEWhello.doc".
> After creating an automation chain that performs an update property on 
> file:filename, In the Event Handlers Section, choosing the "Document 
> modified" event produces many errors, while choosing "Document created" event 
> works well.
> Those errors consist in renaming the filename multiple times so that we end 
> up with something like 
> "null_hello.doc_null_hello.doc_null_hello.doc_null_hello.doc_null ( n times) 
> ...NEWhello.doc" combined with a StackOverflow exception in the console. It 
> seems that a recursive call is created because the listener calls the chain 
> that performs the modification on the document's file, and this modification 
> triggers the listener that calls the chain, and so on...
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to