halitpeker / servicestack

Automatically exported from code.google.com/p/servicestack
0 stars 0 forks source link

JSV Deserialization fails if last value in a dictionary is blank #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Deserialize the string dictionary
{p1:v1,p2:v2,p3:}

ParseUtils.EatMapValue throws an exception because value[i] is called
before the check on value.Length.

Original issue reported on code.google.com by tqclark...@gmail.com on 25 Apr 2010 at 7:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Sorry about the delay as my email wasn't configured to auto receive any 
issues - 
this has now been fixed as well :)

A test and fix for the bug is being maintained here:
[http://code.google.com/p/servicestack/source/browse/trunk/Common/ServiceStack.T
ext/ServiceStack.Text.Tests/ReportedIssues.cs 
ServiceStack.Text.Tests/ReportedIssues.cs]

The fix will be in v1.16 or later of the software. You can download the 
standalone 
version here:
http://servicestack.googlecode.com/files/ServiceStack.Text.zip

Thanks for reporting!

Original comment by demis.be...@gmail.com on 26 Apr 2010 at 9:01