marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

Doc insert with no string provided should not return 200 #19

Closed collwhit closed 13 years ago

collwhit commented 13 years ago

The following request returns 200, with no indication that the document insert has failed (and it does fail).

xdmp:http-put("http://localhost:8004/xml/store",

{xdmp:quote("mydoc")} user pass ) Seems like it ought to return 400.
ryangrimm commented 13 years ago

You are correct, this was a bug and it should return a 400. Just committed a fix.