Last active
May 2, 2019 18:57
-
-
Save whikloj/22747a594194da6072c8c1fd745760ea to your computer and use it in GitHub Desktop.
Deleting a binary description does not delete the binary, so how do you create the description again.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> curl -i -ufedoraAdmin:fedoraAdmin -XDELETE http://localhost:8080/rest/binary/fcr:metadata | |
HTTP/1.1 204 No Content | |
Date: Thu, 02 May 2019 17:19:58 GMT | |
Set-Cookie: JSESSIONID=wyfv3z3bs1bvods28n548jp1;Path=/ | |
Expires: Thu, 01 Jan 1970 00:00:00 GMT | |
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 01-May-2019 17:19:58 GMT | |
Server: Jetty(9.3.25.v20180904) | |
> curl -i -ufedoraAdmin:fedoraAdmin http://localhost:8080/rest/binary/fcr:metadata | |
HTTP/1.1 410 Gone | |
Date: Thu, 02 May 2019 17:20:06 GMT | |
Set-Cookie: JSESSIONID=hyci3u2u3kcc14clitkez6ejx;Path=/ | |
Expires: Thu, 01 Jan 1970 00:00:00 GMT | |
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 01-May-2019 17:20:06 GMT | |
Link: <http://localhost:8080/rest/binary/fcr:metadata/fcr:tombstone>; rel="hasTombstone" | |
Content-Type: text/plain | |
Content-Length: 100 | |
Server: Jetty(9.3.25.v20180904) | |
Discovered tombstone resource at /binary/fedora:description, departed: 2019-05-02T12:19:58.663-05:00% | |
> curl -i -ufedoraAdmin:fedoraAdmin http://localhost:8080/rest/binary | |
HTTP/1.1 200 OK | |
Date: Thu, 02 May 2019 17:20:09 GMT | |
Set-Cookie: JSESSIONID=151sufdjlbb9ye05cqoyatho;Path=/ | |
Expires: Thu, 01 Jan 1970 00:00:00 GMT | |
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 01-May-2019 17:20:09 GMT | |
ETag: "9709575070bcbd3de0d0d7919b1bcd95859c75fb" | |
X-State-Token: 9709575070bcbd3de0d0d7919b1bcd95859c75fb | |
Last-Modified: Thu, 02 May 2019 17:19:58 GMT | |
Content-Type: application/octet-stream | |
Accept-Ranges: bytes | |
Content-Disposition: attachment; filename="binary"; creation-date="Thu, 02 May 2019 16:21:39 GMT"; modification-date="Thu, 02 May 2019 17:19:58 GMT" | |
Link: <http://www.w3.org/ns/ldp#Resource>;rel="type" | |
Link: <http://www.w3.org/ns/ldp#NonRDFSource>;rel="type" | |
Link: <http://localhost:8080/rest/binary/fcr:metadata>; rel="describedby" | |
Link: <http://localhost:8080/rest/binary>; rel="timegate" | |
Link: <http://localhost:8080/rest/binary>; rel="original" | |
Link: <http://localhost:8080/rest/binary/fcr:versions>; rel="timemap" | |
Link: <http://mementoweb.org/ns#OriginalResource>; rel="type" | |
Link: <http://mementoweb.org/ns#TimeGate>; rel="type" | |
Accept-External-Content-Handling: copy,redirect,proxy | |
Allow: DELETE,HEAD,GET,PUT,OPTIONS | |
Link: <http://localhost:8080/rest/binary/fcr:acl>; rel="acl" | |
Cache-Control: no-transform, must-revalidate, max-age=0 | |
Content-Length: 17 | |
Server: Jetty(9.3.25.v20180904) | |
This is some text | |
> curl -i -ufedoraAdmin:fedoraAdmin -XPUT -H"Link: <http://www.w3.org/ns/ldp#RDFSource>; rel=\"type\"" -H"Content-type: text/turtle" -d "@t.txt" http://localhost:8080/rest/binary/fcr:metadata | |
HTTP/1.1 400 Bad Request | |
Date: Thu, 02 May 2019 18:56:19 GMT | |
Set-Cookie: JSESSIONID=suf35tmu4mmg1qq8x24fbz0z5;Path=/ | |
Expires: Thu, 01 Jan 1970 00:00:00 GMT | |
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 01-May-2019 18:56:19 GMT | |
Link: <http://localhost:8080/static/constraints/CannotCreateResourceException.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy" | |
Content-Type: text/plain;charset=utf-8 | |
Content-Length: 61 | |
Server: Jetty(9.3.25.v20180904) | |
Invalid interaction model: http://www.w3.org/ns/ldp#RDFSource |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment