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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 14.12, Release Branch 15.12, Trunk
    • Fix Version/s: 14.12.01, 15.12.01
    • Component/s: ALL COMPONENTS, framework
    • Labels:
      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-trunk.patch
          1.0 kB
          Amardeep Singh Jhajj
        2. OFBIZ-7099-Screenshot.png
          701 kB
          Amardeep Singh Jhajj
        3. OFBIZ-7099-Releases.patch
          1 kB
          Amardeep Singh Jhajj

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: