DecoratedRuleArgs bug?

DecoratedRuleArgs bug?

Old forum URL: forums.lhotka.net/forums/t/4730.aspx


gkurtz posted on Tuesday, April 22, 2008

I think line 468 of DecoratedRuleArgs.cs should be

sb.AppendFormat( "{0}={1}", System.Uri.EscapeDataString(item.Key), System.Uri.EscapeDataString(item.Value.ToString()) );

because sometimes the value can be a regular expression string containing ? and & signs.
Please correct me if I'm wrong.

Regards,
Rob

RockfordLhotka replied on Tuesday, April 22, 2008

I think you are right, that sounds like a potential issue. I'll add it to the list of things to work on. Thanks!

nelis replied on Thursday, June 26, 2008

Something else to consider: null values ?

RockfordLhotka replied on Thursday, June 26, 2008

Good point – thanks!

 

I’ve now changed the code to address these issues in 3.5.1.

 

Rocky

 

 

From: nelis [mailto:cslanet@lhotka.net]
Sent: Thursday, June 26, 2008 7:36 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] DecoratedRuleArgs bug?

 

Something else to consider: null values ?

nelis replied on Thursday, July 03, 2008

Just downloaded 3.5.1

DecoratedRuleArgs.ToString() still contains:

sb.AppendFormat("{0}={1}", item.Key, item.Value.ToString());

without checking item.Value for a null value

RockfordLhotka replied on Thursday, July 03, 2008

I must have made that change after I did the beta release. It is in svn

 

http://www.lhotka.net/cslacvs/viewvc.cgi/trunk/cslacs/Csla/Validation/DecoratedRuleArgs.cs

 

Rocky

 

 

From: nelis [mailto:cslanet@lhotka.net]
Sent: Thursday, July 03, 2008 7:08 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] RE: DecoratedRuleArgs bug?

 

Just downloaded 3.5.1

DecoratedRuleArgs.ToString() still contains:

sb.AppendFormat("{0}={1}", item.Key, item.Value.ToString());

without checking item.Value for a null value



William replied on Thursday, July 03, 2008

Does this apply to version 3.0.4 as well?

RockfordLhotka replied on Saturday, July 12, 2008

Yes, I’ve created a 3.0.5 in subversion (the branches\v3-0-x folder) that contains the fix, so when I do a 3.0.5 maintenance release it’ll be in there.

 

Rocky

 

 

From: William [mailto:cslanet@lhotka.net]
Sent: Thursday, July 03, 2008 6:54 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] RE: RE: DecoratedRuleArgs bug?

 

Does this apply to version 3.0.4 as well?



Copyright (c) Marimer LLC