Project

General

Profile

Task #7254

v2 MN.create() followed by v1 MN.update() on same node shouldn't overwrite SID

Added by Andrei Buium over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Metacat
Target version:
Start date:
2015-07-14
Due date:
% Done:

0%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

After using an MN's v2 endpoint to create a v2 object,
using update() on the v1 endpoint on that node,
the system metadata for that object should still have the same SID as the previous version's sysmeta.

The v1 update() will contain sysmeta without a SID, but since we're updating a v2 object, we don't want to lose the SID assigned at v2 create() time.
We want the sysmeta created for the new object to keep the SID from the previous (v2) sysmeta.

Corresponding test: V1V2InteropFunctionalIT.testV2CreateV1UpdateSameNode()

History

#1 Updated by Jing Tao over 9 years ago

  • Target version set to CCI-2.0.0

#2 Updated by Jing Tao over 9 years ago

  • Status changed from New to Rejected
  • translation missing: en.field_remaining_hours set to 0.0

A SID chain can be terminated by a new version of object with SID=null in the system metadata. If we want v1.update always keep the existing sid of the previous version object, we can't use this v1.update method to terminate the sid chain (purposely to update the object with sid=null).

And, there is no reason to call a v1.update method on an object with v2 system metadata.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)