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

bug in depends-on in ofbiz-component.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 18.12.01, Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
      None

      Description

      when using `depends-on` tag in obfiz-component.xml one should expect ofbiz to load component (and in particular container listed in ofbiz-component.xml) in particular order.

      I mean if component `accounting` has this line in its ofbiz-component.xml

      <depends-on component="order" />

      ofbiz should load order component first and then accounting. This is not the case. Only classpath is modified according to depends-on declaration (and this is not really a usefull/used feature but we'll see this in another issue )

      So here are patches to fix this issue. First one is only a test (which is skipped to allow ./gradlew test to be ok, so if one need to be convinced one should comment Ignore annotation) to illustrate issue, the two others are actual fixes

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mthl Mathieu Lirzin
                Reporter:
                stregouet Samuel Trégouët
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: