Hi Tiago,

Not sure if anyone has got back to you about this, but I had the same problem 
and it was because of a bug in the REST API code - 
https://jira.duraspace.org/browse/DS-3511.

I applied the fix mentioned in that ticket (Added “context.complete()” at the 
points indicated in the patch) and it started working, and I was then able to 
delete the required Policy from a bitstream via the REST API.

Hope that helps,

Mike

Michael White
Senior Developer
Business Applications and Integrations

T: (01786) 466877
E: [email protected]<mailto:[email protected]>
A: G5, Airthrey Castle, University of Stirling, Stirling, FK9 4LA

From: [email protected] <[email protected]> On 
Behalf Of Tiago Rodrigo Marçal Murakami
Sent: 22 May 2018 11:28
To: [email protected]
Subject: [dspace-community] Error using DELETE policy of bitstream on REST API 
- DSpace 6

Hi,

When I try to DELETE annonymous READ policy of Bistream using REST, DSpace 
return Error 500.

DSpace.log:

2018-05-22 07:13:29,415 INFO  org.dspace.rest.BitstreamResource @ Deleting  
policy(id=570) from bitstream(id=0eedba8a-acac-487b-bc14-6016f24f51cd).
2018-05-22 07:13:29,478 INFO  org.dspace.usage.LoggerUsageEventListener @ 
[email protected]::update_bitstream:bitstream_id=0eedba8a-acac-487b-bc14-6016f24f51cd<mailto:[email protected]::update_bitstream:bitstream_id=0eedba8a-acac-487b-bc14-6016f24f51cd>
2018-05-22 07:13:29,510 ERROR org.dspace.rest.Resource @ Something get wrong. 
Aborting context in finally statement.


ADD policy works great.


Does anyone know how to correct this error?



Tiago Rodrigo Marçal Murakami
Divisão de Gestão de Tratamento da Informação - DGTI
Departamento Técnico - SIBiUSP
http://www.bibliotecas.usp.br<http://www.bibliotecas.usp.br/>
[email protected]<mailto:[email protected]>
www.facebook.com/SIBiUSP<http://www.facebook.com/SIBiUSP>
Fone:  (+5511) 2648-0948
--
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

-- 
The University achieved an overall 5 stars in the QS World University Rankings 
2016/17
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" 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-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to