Skip to content

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

@awaterma

Description

@awaterma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions