You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2022/04/22 14:04:00 UTC

[jira] [Updated] (OFBIZ-12604) RequestMap.event with type service multi doesn't work with dynamic url

     [ https://issues.apache.org/jira/browse/OFBIZ-12604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Malin updated OFBIZ-12604:
----------------------------------
    Attachment: OFBIZ-12604.patch

> RequestMap.event with type service multi doesn't work with dynamic url
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-12604
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12604
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/webapp
>    Affects Versions: 22.01.01
>            Reporter: Nicolas Malin
>            Priority: Major
>         Attachments: OFBIZ-12604.patch
>
>
> When you define an controller request-map with an event of type 'service-multi', if your uri contains multiple allocation like 'MyWay/MyAction' the class ServiceMultiEventHandler failed to execute with an EventHandlerException
>  
> {code:java}
>     <request-map uri="Payment/QuickSend">
> ...
>         <event type="service-multi" invoke="quickSendPayment"/>
> ...
>  
> {code}
> The reason comes from the necessary to resolve the attribute *global-transaction* on event definition, and to do that a call on ConfigXMLReader is realized.
> But unecessary because we already have the event element on the context.
> We can use it directly, and by the way simplify the code and fix this issue :)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)