Engine.InvalidMessageTransformer.GetEfectiveValidatorMatchTags throws exception when running in medium trust

Description

Line 80 causes a VerificationException to be thrown in medium trust:

return validatorDef.Tags == null || validatorDef.Tags.Count == 0 ? new object[] { null } : validatorDef.Tags;

Replacing "new object[] { null }" with "new List<object>()" fixes the problem:

return validatorDef.Tags == null || validatorDef.Tags.Count == 0 ? new List<object>() : validatorDef.Tags;

Environment

None

Attachments

1

Activity

Show:

Dario Quintana 
January 9, 2010 at 1:06 PM

Paul, is fixed at trunk, maybe you can have a look.

Fabio Maulo 
January 7, 2010 at 2:44 PM

Any issue is Critical from the point of view of the user... the matter here is the point of view of NHV.
btw thanks for your issue and patch

Paul Wideman 
December 23, 2009 at 2:02 PM

I forgot to set the priority before filing the issue, obviously for me (and presumably anyone trying to use NHV in medium trust) this is a pretty critical issue.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 23, 2009 at 2:00 PM
Updated January 9, 2010 at 1:06 PM
Resolved January 9, 2010 at 1:06 PM
Who's Looking?