Issue (View Online)

Key: NXP-1291
Issue Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Bogdan Stefanescu
Reporter: Olivier Grisel
Original Estimate: 2 hours
Remaining Estimate: 2 hours

Operations

View all
View comments
View history
inconsistent event names raised by in AbstractSession.saveDocument 
Updated: 02/07/07 12:04   Created: 02/07/07 12:04  

Project: Nuxeo Enterprise Platform 5
Components: Core
Fix Versions: 5.1 RC

 Description   
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 was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to