[ 
http://jira.nuxeo.org/browse/NXP-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stéfane Fermigier updated NXP-1291:
-----------------------------------

    Fix Version/s:     (was: 5.2 M1)
                   5.2 M2

> inconsistent event names raised by in AbstractSession.saveDocument
> ------------------------------------------------------------------
>
>                 Key: NXP-1291
>                 URL: http://jira.nuxeo.org/browse/NXP-1291
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Bug
>          Components: Core
>            Reporter: Olivier Grisel
>            Assignee: Bogdan Stefanescu
>             Fix For: 5.2 M2
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> saving a document raised BEFORE_DOCUMENT_UPDATE and then DOCUMENT_UPDATED. 
> The problem is they are both raised before the write model call ... I would 
> say we should move the DOCUMENT_UPDATED code after that call and use the 
> BEFORE_DOCUMENT_UPDATE instead where needed but I don't want to break 
> anything.
> the annotated source code is the following. Interested parties, please give 
> us input as comments on this issue:
>  19364 atchertchian             options.put(CoreEventConstants.DOCUMENT, doc);
>  19364 atchertchian             
> notifyEvent(DocumentEventTypes.BEFORE_DOC_UPDATE, docModel,
>  19364 atchertchian                     options, null, null, true);
>  15758 sfermigier
>  21523 bstefanescu             // modify document - DO NOT write doc twice -> 
> since internal document listeners was removed
>  21523 bstefanescu //            docModel = writeModel(doc, docModel);
>  18396 bchaffangeon
>  19364 atchertchian             
> notifyEvent(DocumentEventTypes.DOCUMENT_UPDATED, docModel, options,
>  18449   gracinet                     null, null, true);
>  19364 atchertchian             docModel = writeModel(doc, docModel);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://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

Reply via email to