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

ofbizsetup create product store cause exception, remove use of temp file to load entity data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 14.12.01, 15.12.01, 13.07.04
    • commonext
    • None
    • Bug Crush Event - 21/2/2015

    Description

      The exception is caused by foreign key constraint violation between ShipmentCostEstimate and CarrierShipmentMethod entities.

      Currently, when creating a new product store using ofbizsetup component default data associated with the product store is loaded into the database using the following steps.

      1. read default data from entity xml file and replace specific items in the read data and write to temp file.
      2. use service=parseEntityXmlFile to load the processed file into database.

      The issue with this method is that the temp file can present a problem when ofbiz is operating in multitenant mode.

      The solution is to modify the relevant services so that no temp file needs generated.

      Attachments

        1. OFBIZ-5949.patch
          64 kB
          Wai
        2. OFBIZ-5949.patch
          66 kB
          Wai
        3. OFBIZ-5949.patch
          66 kB
          Wai

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              wt Wai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: