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

Groovy DSL runService Exception Management

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:

      Description

      Like discussed in thread : https://lists.apache.org/thread.html/5a8e1caed0bcf29889c6b88ec1916947cf092d6f99d7dfe27cbef8c0@%3Cdev.ofbiz.apache.org%3E
       
      This ticket try to improve the way that errors are rendered when using run service groovy DSL method.

       
      To reproduce and test patch:
      apply the attached patch OFBIZ-10692-TEST.patch (it adds a control on createUomConversionDated service) and try to create a conversion rate with a fromDate greater than the thruDate here:
      https://localhost:8443/accounting/control/viewFXConversions?organizationPartyId=Company
       
      You should then see the following error:
          The Following Errors Occurred: Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error (org.apache.ofbiz.service.ExecutionServiceException: Through date can't be same or smaller than from date)
       
      With OFBIZ-10692.patch update, the error must be displayed like:
          The Following Errors Occurred: Through date can't be same or smaller than from date
       

        Attachments

        1. OFBIZ-10692.patch
          4 kB
          Leila Mekika
        2. OFBIZ-10692-TEST.patch
          1 kB
          Leila Mekika
        3. screenshot-1.png
          66 kB
          Gil Portenseigne
        4. Sélection_088.png
          44 kB
          Gil Portenseigne

          Activity

            People

            • Assignee:
              gil portenseigne Gil Portenseigne
              Reporter:
              mleila Leila Mekika
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: