[MarkLogic Dev General] DELETE method not allowed on HTTP Server?
Steve.Mallen at semantico.com
Fri Aug 1 08:19:13 PDT 2008
I've been trying to implement a simple REST-style API using the Mark
Logic HTTP server and an XQuery controller. This has been going fairly
well; but I've hit a bit of a brick wall with the DELETE method:
I have my HTTP server set up with authentication: "application-level"
and default user: "admin", in order to effectively turn off security
(I'm just doing some prototypying here).
When I submit a DELETE request to the server I get a "500 Internal
Server Error" response code, with this message:
SEC-DEFAULTUSERDNE: Default user does not exist: sec:user-id =
GET and POST requests are working fine, by the way. I haven't tried the
PUT method yet.
To try and get around this, I turned security on by setting
authentication to "basic", and sending the username and password
credentials to the server. I then get:
There is no clue as to why the request has been denied. Does this
basically mean that the "DELETE" method isn't supported? I tried to
test this assumption by doing an "OPTIONS" request, which predictably
405 Method Not Allowed
Any help or clues on this would be much appreciated.
More information about the General