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

findProductById is not available

    XMLWordPrintableJSON

Details

    Description

      The function "findProductById" is not available. The issue is in the services.xml for the product component.
      Currently it has:

      • <service name="findProductsById" engine="java" auth="true"
      • location="org.ofbiz.product.ProductServices" invoke="findProductByGoodIdentification">
      • <description>Find the productId corresponding to a reference and a reference type</description>
      • <attribute type="String" mode="IN" name="idToFind" optional="false"/>
      • <attribute type="String" mode="IN" name="goodIdentificationTypeId" optional="true"/>
      • <attribute type="String" mode="IN" name="searchProductFirst" optional="true"/>
      • <attribute type="String" mode="IN" name="searchAllId" optional="true"/>
      • <attribute type="org.ofbiz.entity.GenericValue" mode="OUT" name="product" optional="true"/>
      • <attribute type="List" mode="OUT" name="productsFound" optional="true"/>
      • </service>

      The service name should be "findProductById", without "s".
      The invoke should be "findProductById" instead of "findProductByGoodIdentification"
      The Location should be location="org.ofbiz.product.product.ProductServices"
      Finally the return type of the service should have "productsList" and not "productsFound".

      Attachments

        1. fix_findProductById_service.patch
          0.5 kB
          Mansour Al Akeel

        Activity

          People

            jleroux Jacques Le Roux
            mansour Mansour Al Akeel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified