Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-597

Import objects does not fully honor "keep oid" while importing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.10 (Phoebe)
    • 1.10 (Phoebe)
    • None
    • None

    Description

      Import: new object with no oid defined in file, keep oid=false ... result: oid is generated (OK).
      Reimport: existing object, no oid defined in file, keep oid=false ... result: NEW oid is generated.

      Import object: new object with oid defined in file, keep oid=false ... result: oid from file is used.
      Reimport: existing object with oid defined in file, keep oid=false ... result: oid is kept (or used from file, it's the same, can't tell).
      Reimport: existing object, no oid defined in file (manually deleted), keep oid=true ... result: NEW oid is generated (obviously NOT OK).

      If I get it right, it works as follows:

      • when importing object without OID defined, it will be generated
      • when importing object with OID, it's used
      • when reimporting existing object with no OID in file, new OID will be generated regardless on "keep oid" setting.

      Personally, I'd expect:

      • when importing new object with oid, use it (unless it is not unique in repository, generate in such case?)
      • when importing new object without oid, generate oid
      • when reimporting existing object with no oid, keep the oid of the existing object
      • when reimporting existing object with oid, use "keep oid" setting? (use previous or new oid? what about object references? in repo and in file?)

      Do we need the keep oid setting...?

      Attachments

        Activity

          People

            vix Ivan Noris
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: