dannote / mod-ndb

Automatically exported from code.google.com/p/mod-ndb
0 stars 0 forks source link

JSONRequest.post broken in b496 #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While the simple "json05" test case works in the 1.1 beta b496, most real 
applications of 
JSONRequest.post do not.

Original issue reported on code.google.com by john.david.duncan on 4 Jan 2008 at 1:56

GoogleCodeExporter commented 9 years ago
Test case:
json06 JR/f1 typ6 --data-binary ' { "i":2, "j":3, "name":"rasmus"}'

Original comment by tkel...@gmail.com on 10 Jan 2008 at 7:18

GoogleCodeExporter commented 9 years ago
[Wed Jan 09 23:34:57 2008] [debug] request_body.cc(30): i => 3
[Wed Jan 09 23:34:57 2008] [debug] request_body.cc(30): j => 4
[Wed Jan 09 23:34:57 2008] [debug] request_body.cc(30): name => larry
[Wed Jan 09 23:34:57 2008] [debug] Query.cc(163): Request in: $j=typ6
[Wed Jan 09 23:34:57 2008] [debug] Query.cc(163): Request in: $i=test
[Wed Jan 09 23:34:57 2008] [debug] index_object.h(57): Using primary key lookup.
[Wed Jan 09 23:34:57 2008] [debug] Query.cc(594): Updating column name = larry
[Wed Jan 09 23:34:57 2008] [debug] Query.cc(435):  ** Request column_alias: i 
[i] -- value: test
[Wed Jan 09 23:34:57 2008] [debug] Query.cc(435):  ** Request column_alias: j 
[j] -- value: typ6
[Wed Jan 09 23:34:57 2008] [debug] Execute.cc(89): Ready to execute transaction 
with 0 read operations
[Wed Jan 09 23:34:57 2008] [debug] Execute.cc(205): Returning 204

Note the discrepancy between request_body.cc and Query.cc

Original comment by tkel...@gmail.com on 10 Jan 2008 at 7:40

GoogleCodeExporter commented 9 years ago
This is at /ndb/test/typ6 --  so "test" and "typ6" are being treated as 
PathInfo.

Original comment by tkel...@gmail.com on 10 Jan 2008 at 10:35

GoogleCodeExporter commented 9 years ago
Fixed in svn.

Original comment by john.david.duncan on 22 Mar 2008 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 25 Jun 2009 at 3:58