Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12604

RequestMap.event with type service multi doesn't work with dynamic url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 22.01.01, Upcoming Branch
    • 22.01.01
    • framework/webapp
    • None

    Description

      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

       

      
          <request-map uri="Payment/QuickSend">
      ...
              <event type="service-multi" invoke="quickSendPayment"/>
      ...
       
      

      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

      Attachments

        1. OFBIZ-12604.patch
          1 kB
          Nicolas Malin

        Activity

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: