You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although very risky and unsafe for a user, it may be possible for MobileFormatter to have an option to allow deserialization into a type of the same name/assembly where the version and signing information doesn't match.
The referenced discussion thread contains info about why this is risky and may lead to people having hard-to-find and hard-to-solve issues in their app.
Number 4: Apparently we are not using the SerializationInfo correctly. We add all of an object's properties using info.AddValue function regardless of if the value is a custom type or IMobileObject type or System type.
Add an option to turn on assembly/type matching somewhere in the CSLA options (default setting is off)
Change MobileFormatter to look at the matching options
I would like to add some tests for this configuration in the SerializationTests, but I think I need to create couple simple test assemblies with same name, but different versions to check that real types are deserialized and do not play with mocks too much.
However, PR #4024 will change the implementation, because there will be a MobileFormatterOptions class where options specific to MobileFormatter are set and maintained. This will help enable other future formatters that people might create, and also provides a clear place for MF options.
Hopefully #4024 will be complete within the next day or two.
Although very risky and unsafe for a user, it may be possible for
MobileFormatter
to have an option to allow deserialization into a type of the same name/assembly where the version and signing information doesn't match.The referenced discussion thread contains info about why this is risky and may lead to people having hard-to-find and hard-to-solve issues in their app.
Number 4: Apparently we are not using the SerializationInfo correctly. We add all of an object's properties using info.AddValue function regardless of if the value is a custom type or IMobileObject type or System type.
Should just be those two.
Originally posted by @crazyfox55 in #3021 (comment)
The text was updated successfully, but these errors were encountered: