Skip to content

Serialiser_Engine: Infinite looping for upgrader possible #3055

Closed
@IsakNaslundBh

Description

@IsakNaslundBh

Description:

Currently possible to end up in an infinite upgrade loop for objects for the case that an object has been upgraded in a faulty way with custom upgrader, giving back an invalid type name in the ["_t"] property. This is due to missing to check if the type already has been upgraded or not in

if (type == null)
return DeserialiseDeprecate(doc, ref failed, version) as IObject;

Steps to reproduce:

Make an upgrader for an object, setting a faulty type name in ["_t"]

Expected behaviour:

For this to be properly catched. Suggesting adding IsUIpgraded boolean to be passed to DeserialiseDeprecate

Metadata

Metadata

Assignees

Labels

type:bugError or unexpected behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions