Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0 Server Does not Support Delete for Container or Resource #1

Open
awaterma opened this issue May 27, 2013 · 0 comments
Open

2.0 Server Does not Support Delete for Container or Resource #1

awaterma opened this issue May 27, 2013 · 0 comments

Comments

@awaterma
Copy link

The sword profile states [http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_deleteconteiner]:

The client can delete the entire object on the server by issuing an HTTP DELETE 
request on the Edit-IRI, with the following requirements:

The client MAY provide an On-Behalf-Of header [SWORD001]
DELETE Edit-IRI HTTP/1.1 
Host: example.org
Authorization: Basic ZGFmZnk6c2VjZXJldA==
On-Behalf-Of: jbloggs
The requirements placed on the server here are:

If there is an On-Behalf-Of header, the server MUST behave as described in Section 8:     
Authentication and Mediated Deposit.
The server MUST effectively remove the Container and all its content, although 
implementations may choose to provide versioning or some other mechanism for 
retaining the deleted content.
The Edit-IRI MUST return a 404 Not Found on any future requests.

However, I get a 405 on posting to the EIRI and the EMIRIR (for deleting content, not the container):

[status code] 405
[reason phrase] Method Not Allowed
[url] http://localhost:8080/swordv2/edit/14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant