Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then run this to attempt to update foo:

Code Block
languagetext
$ curl -i -X PATCH http://localhost:8080/fcrepo/rest/foo -u user1:password1 \
      -H "Content-Type: application/sparql-update" \
      --data-binary @foo.sparql

...

Run this command to update the ACL authorization:

Code Block
languagetext
$ curl -i -X PATCH http://localhost:8080/fcrepo/rest/acl/authz -u admin1:password3 \
      -H "Content-Type: application/sparql-update" \
      --data-binary @authz.sparql

...

Now you should be able to re-run the earlier command to update the foo resource as user1:

Code Block
languagetext
$ curl -i -X PATCH http://localhost:8080/fcrepo/rest/foo -u user1:password1 \
      -H "Content-Type: application/sparql-update" \
      --data-binary @foo.sparql

...