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

Alexandre Russel reopened NXP-5664:
-----------------------------------


This change apparently breaks some code:
when an event is thrown without an argument such as:
     Events.instance().raiseEvent("documentChildrenChanged");
this code:

    @Observer(value = { DOCUMENT_CHILDREN_CHANGED }, create = false, inject = 
false)
    @BypassInterceptors
    public void documentChildrenChanged(DocumentModel targetDoc) {

will be ok, when this code:

    @Observer(value = { DOCUMENT_CHILDREN_CHANGED }, create = false)
    @BypassInterceptors
    public void documentChildrenChanged(DocumentModel targetDoc) {

will throw an exception.
=> we need to either change observer with argument or make sure client code is 
sending one

> Prepare Seam 2.1 migration
> --------------------------
>
>                 Key: NXP-5664
>                 URL: https://jira.nuxeo.org/browse/NXP-5664
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Task
>            Reporter: Thierry Delprat
>            Assignee: Thierry Delprat
>             Fix For: 5.4
>
>
> In order to avoid having to patch Seam 2.1, we should remove from Nuxeo the 
> usage of inject=false in the @Observer.
> Using @ByPassInjection should do the same in most cases.

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

Reply via email to