SWORD module doesn't accept X-No-Op header (dry run)
----------------------------------------------------

                 Key: DS-199
                 URL: http://jira.dspace.org/jira/browse/DS-199
             Project: DSpace 1.x
          Issue Type: Bug
    Affects Versions: 1.5.2
            Reporter: Claudio Venturini
            Priority: Minor


I've run some tests of the SWORD module using the example zip package 
(example.zip) included with the source of DSpace.

The creation of a new resource fails if the HTTP request contains the X-No-Op 
header with a value of 'true'. According to the SWORD Atom profile 1.3 "servers 
MUST recognise this header and either handle the POST as a simulated deposit 
without creating a resource, or else return a status code of 400 Bad Request to 
indicate that they do not support this extension". What happens is that the 
server returns a status code of 500 Internal Server Error.

This is the stack trace included in the server reponse:

Server returned: value: org.purl.sword.client.SWORDClientException: Unable to 
parse the XML(java.lang.NullPointerException
        
org.dspace.sword.CollectionDepositor.undoDeposit(CollectionDepositor.java:287)
        org.dspace.sword.DepositManager.deposit(DepositManager.java:212)
        org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:150)
        org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:331)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
)

All works fine if the request doesn't contain the X-No-Op header, or if this 
header has a value of 'false'.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to