[ 
http://jira.nuxeo.org/browse/NXP-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32110#action_32110
 ] 

Damien Dupraz commented on NXP-1457:
------------------------------------

The bug seems to be fixed with a few changes on events audited by the 
notification system.
I removed the "documentProxyPublished" event and replaced it by 2 other 
preexisting events

-documentPublicationApproved for the case the document must be apporved by a 
manager or an admin in the section
-documentPublished for the case the document is published by a guy with writing 
rights on a section

The 2 events cannot happend at the same time so we avoid the case where 2 mails 
are sent for the same notification.


For the "system" user appearing in the mail, my tests with new notification 
configuration trigger no problems at this very moment.
I guess that the problem may happen because of Framework.login() method used in 
publishing process and because of asynchronous events handling...


Note : the event EventNames.PROXY_PUBLISHED introduced by Julien seems to be 
never used in the Nuxeo code...

> Publication notification
> ------------------------
>
>                 Key: NXP-1457
>                 URL: http://jira.nuxeo.org/browse/NXP-1457
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Bug
>          Components: Notifications
>            Reporter: Solen Guitter
>            Assignee: Damien Dupraz
>            Priority: Major
>             Fix For: 5.1.3
>
>
> A notification is sent to the users who subscribed the "Document published" 
> notification when the document is submitted to publication. The problem is 
> that the document is not yet published. So thay can't access the document in 
> the section. The notification should only be sent when the publication 
> submission is approved and that the document becomes available to section 
> readers.

-- 
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