OpenESPI-Common-java icon indicating copy to clipboard operation
OpenESPI-Common-java copied to clipboard

Entity id in self/related link of XML

Open janad-lh opened this issue 11 years ago • 2 comments

While exporting data from Datacustodian, self or related link is formed using entity id in generate XML irrespective of what value is used in import XML. So link value differ in import xml and export xml.

janad-lh avatar Jul 21 '14 01:07 janad-lh

The Data Custodian needs to insure that it maintains locally unique entity id's - we chose to use a locally unique identifier for this purpose. That means that imported entity ids (that are only going to be locally unique to the externally generating DataCustodian) are not used at the entity id of the imported resources.

On the otherhand, the UUIDs of the resources are respected (i.e. I believe we insure that if the UUID of an imported resource is found to equal the UUID of a locally maintained resource, then the local resource is used.)

Is there a particular reason/requirement that leads you to have assumed that the imported entity id's might be maintained??

jateeter avatar Jul 21 '14 15:07 jateeter

Where do we stand with this? in this enhancement, where the DataCustodian export service must re-produce the externally generated URLs), we have the (negative) potential of impacting all of the code that generates the export of URLs.

jateeter avatar Aug 15 '14 18:08 jateeter