-
Bug
-
Resolution: Done
-
Medium
-
Montreal Release
-
None
When saving data nodes using:
saveData(dataspaceName, anchorName, parentNodeXpath, nodeData, observedTimestamp)
The parentNodeXpath is not normalized. This results in data nodes being written to the database in a non-normal form, meaning those nodes cannot be operated on at all - this affects all operations like get, query, update, delete.
For example, if saveData is called like this:
notNormalizedParentXpath = '/bookstore/categories[ @code="1"]' json = '"books" : [ { "title": "New Book" } ]' saveData(dataspaceName, anchorName, notNormalizedParentXpath, json, now);
The fragment will be written to the DB with xpath:
/bookstore/categories[ @code="1"]/books[@title='New Book']