Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Platform Core
-
Needs Assessment
-
Bug Fix
-
Attempt to use the reserved attribute names {{__ptype}} and {{__pvalue}} in custom {{Object}} data types will now raise an error instead of producing bad result when serializing such objects.
-
Needs Assessment
Description
An attempt to use the rich data tag '__ptype' as the name of an attribute in an Object will cause a failure to serialize that object using the human readable Data format. An Object is represented as a Hash where '__ptype' is supposed to be a String representation of the type and an attribute using the same name causes the type to be overwritten. Use of '__pvalue' will cause a similar confusion when reading the `Object`.
The special rich data tags'__ptype' and '__pvalue' should not be permitted as names of attributes in an Object.