I'm trying to use swordv2 for depositing items to DSpace-CRIS 5.10 and am
getting a 404 error.

I am using the following curl command (pilfered from someone else's post):

curl -v -i --data-binary "@Downloads/Singh_2009.pdf" -H
"Content-Disposition:attachment; filename=Singh_2009.pdf" -H
"Content-Type:application/pdf" -H "Packaging:
http://purl.org/net/sword/package/Binary"; -u [email protected]:password
-X POST http://dev-ir.dut.ac.za:8080/swordv2/collection/123456789/3119

This is the response on the command line:
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 10.4.36.12...
* Connected to dev-ir.dut.ac.za (10.4.36.12) port 8080 (#0)
* Server auth using Basic with user '[email protected]'
> POST /swordv2/collection/123456789/3119 HTTP/1.1
> Host: dev-ir.dut.ac.za:8080
> Authorization: Basic c2Vhbi5jYXJ0ZUBnbWFpbC5jb206MHJhbmRvbTA=
> User-Agent: curl/7.47.0
> Accept: */*
> Content-Disposition:attachment; filename=Singh_2009.pdf
> Content-Type:application/pdf
> Packaging:http://purl.org/net/sword/package/Binary
> Content-Length: 1413724
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
HTTP/1.1 100 Continue

* We are completely uploaded and fine
< HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Content-Length: 0
Content-Length: 0
< Date: Thu, 14 Mar 2019 07:48:21 GMT
Date: Thu, 14 Mar 2019 07:48:21 GMT
< Connection: close
Connection: close

<
* Closing connection 0


And this is what I get in the dspace.log:

2019-03-14 09:53:02,522 INFO  org.swordapp.server.SwordAPIEndpoint @ Auth
type = Basic
2019-03-14 09:53:02,668 INFO  org.dspace.sword2.SwordAuthenticator @
anonymous:session_id=0:sword_authenticate:[email protected]
,on_behalf_of=null
2019-03-14 09:53:02,669 INFO
org.dspace.authenticate.PasswordAuthentication @
anonymous:session_id=0:authenticate:attempting password auth of user=
[email protected]
2019-03-14 09:53:02,965 INFO
org.dspace.authenticate.PasswordAuthentication @ [email protected]:
session_id=0:authenticate:type=PasswordAuthentication
2019-03-14 09:53:02,965 INFO  org.dspace.sword2.DSpaceSwordAPI @
[email protected]:session_id=0:sword_auth_request:username=
[email protected],on_behalf_of=NONE


I am able to submit items to that collection with that user using the
JSPUI. Is there something I'm doing wrong with swordv2?

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to