Page MenuHomePhabricator

Name property resets to default value if set before calling DataStorage::Add()
Closed, InvalidPublic

Description

The ordering of (A) and (B) has influence on the resulting name of the data node. Snippet:

DataNode::Pointer my_node = DataNode::New();
[...]

(A) my_node->SetProperty("name", mitk::StringProperty("NewNodeName");

(B) GetDefaultDataStorage()->Add( my_node, parent_node );

Setting the name before adding (Ordering A,B):

The name property is set to "No Name!"

Setting the name after adding (B,A):

The name property is correct

This is a change in behavior of the DataStorage, it was working also with the first ordering A,B previously ( f.i. in Diffusion 2014.10 ).

Event Timeline

It is a most likely a side effect of the incomplete fixes for T18482.

Assigning to the assignee of 18482.

kislinsk changed the task status from Invalid to Spite.Jun 27 2018, 1:29 PM
kislinsk added a project: Bulk Edit.
kislinsk changed the task status from Spite to Invalid.Jun 27 2018, 1:35 PM
kislinsk removed a project: Bulk Edit.