[
https://jira.nuxeo.org/browse/NXS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anahide Tchertchian updated NXS-327:
------------------------------------
Fix Version/s: 1.x
Affects Version/s: 1.5
> simultaneous use of Document Modified Event and Update Property on
> file:filname does not work
> ---------------------------------------------------------------------------------------------
>
> Key: NXS-327
> URL: https://jira.nuxeo.org/browse/NXS-327
> Project: Nuxeo Studio
> Issue Type: Bug
> Affects Versions: 1.5
> Reporter: Walid Hajeri
> Priority: Blocker
> Fix For: 1.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.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets