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

Service entity auto not having duplicate record check when we pass single primary key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 14.12, Release Branch 15.12, Trunk
    • 14.12.01, 15.12.01
    • ALL COMPONENTS, framework
    • None

    Description

      Service entity auto not having duplicate record check when we pass single primary key.

      I was working on adding Humanres/ Skill types. On adding skill type Id, I got duplicate key error as i tried to use already present skill type Id. Please find attached screenshot.

      Then I thought why "already present Id error" not returned.

      Error cause: On doing some research, i found issue in EntityAutoEngines's invokeCreate method where duplicate record check was missing for single primary key creation.

      Attachments

        1. OFBIZ-7099-Screenshot.png
          701 kB
          Amardeep Singh Jhajj
        2. OFBIZ-7099-trunk.patch
          1.0 kB
          Amardeep Singh Jhajj
        3. OFBIZ-7099-Releases.patch
          1 kB
          Amardeep Singh Jhajj

        Activity

          People

            pandeypranay Pranay Pandey
            amardeepsj Amardeep Singh Jhajj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: