Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
daca359
)
Thrift-1131: C# JSON Protocol is unable to decode escaped characters in string
author
Jake Farrell
<jfarrell@apache.org>
Thu, 14 Apr 2011 14:30:25 +0000
(14:30 +0000)
committer
Jake Farrell
<jfarrell@apache.org>
Thu, 14 Apr 2011 14:30:25 +0000
(14:30 +0000)
Client lib: csharp
Patch: Maciek Weksej
C# JSON Protocol throws TProtocolException after meeting an escaped character in UTF8 string, this casts the value being read to avoid this.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1092282
13f79535
-47bb-0310-9956-
ffa450edef68
lib/csharp/src/Protocol/TJSONProtocol.cs
patch
|
blob
|
history
diff --git
a/lib/csharp/src/Protocol/TJSONProtocol.cs
b/lib/csharp/src/Protocol/TJSONProtocol.cs
index
7c88f0f
..
5f6351f
100644
(file)
--- a/
lib/csharp/src/Protocol/TJSONProtocol.cs
+++ b/
lib/csharp/src/Protocol/TJSONProtocol.cs
@@
-744,7
+744,7
@@
namespace Thrift.Protocol
}
else
{
- int off = Array.IndexOf(ESCAPE_CHARS, ch);
+ int off = Array.IndexOf(ESCAPE_CHARS,
(char)
ch);
if (off == -1)
{
throw new TProtocolException(TProtocolException.INVALID_DATA,