dannote / mod-ndb

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

"410 GONE" response on attempted duplicate insert #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This doesn't seem like the correct response.

pierre:~/Desktop/mod_ndb/mod_ndb/Tests jdd$ sh t1_first_row.sh 
HTTP/1.1 410 Gone
Date: Thu, 15 Feb 2007 20:40:45 GMT
Server: Apache/1.3.33 (Darwin) NDB/5.1.15-beta PHP/4.4.4
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

[Thu Feb 15 12:40:45 2007] [debug] Execute.cc(112): Returning 410 because 
tx->execute failed: 
Tuple already existed when attempting to insert

Original issue reported on code.google.com by john.david.duncan on 15 Feb 2007 at 8:42

GoogleCodeExporter commented 9 years ago
"409 CONFLICT" may be right. Plus the description of 409 in the standard 
supports the point that inserts should 
always be PUT rather than POST.

Original comment by john.david.duncan on 15 Feb 2007 at 10:13

GoogleCodeExporter commented 9 years ago
The whole matrix of requests and responses has been documented now at <a 
href="http://forge.mysql.com/
wiki/Mod_ndb_requests_and_responses">http://forge.mysql.com/wiki/Mod_ndb_request
s_and_responses</a>.  
Now the task, using that table as a reference, is to make the code correct.  

Original comment by john.david.duncan on 1 Mar 2007 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 28 Apr 2007 at 6:04

GoogleCodeExporter commented 9 years ago
Fixed in svn 341.

Original comment by john.david.duncan on 20 Aug 2007 at 5:12