Skip to content

Commit

Permalink
there's a nuance to the remove + recreate datastream i'm not understa…
Browse files Browse the repository at this point in the history
…nding, but this should let the test pass..
  • Loading branch information
cbeer committed Jan 18, 2013
1 parent 32fa275 commit f9e2aab
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -79,6 +79,7 @@ public Response addDatastream(@PathParam("pid") final String pid,
} else {
if (session.hasPermission("/" + dspath, "remove")) {
root.getNode(dspath).remove();
session.save();
return Response
.ok()
.entity(addDatastreamNode(dspath, contentType,
Expand Down Expand Up @@ -116,6 +117,7 @@ public Response modifyDatastream(@PathParam("pid") final String pid,
} else {
if (session.hasPermission("/" + dspath, "remove")) {
root.getNode(dspath).remove();
session.save();
return Response
.ok()
.entity(addDatastreamNode(dspath, contentType,
Expand Down

0 comments on commit f9e2aab

Please sign in to comment.