[
https://jira.nuxeo.org/browse/NXS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=85539#action_85539
]
Florent Guillaume commented on NXS-327:
---------------------------------------
For inline synchronous events, if you want to modify the doc "in flight" you
should always use a "before modification" event, and not save it as the save
will be done by the system.
> 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
> Reporter: Walid Hajeri
> Priority: Blocker
>
> 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