[Dspace-tech] REST API not seeing new bitstreams

2015-03-24 Thread Benjamin Ryan
Hi,
DSpace 4.1, Ubuntu 14.04, Tomcat 7, Postgres 9.3

When adding new bitstreams to items these do not appear in the 
REST API output for the item but are in the output for the bitstream.
The bistreams appear in the DSpace interface (XMLUI).
The bitstreams have appeared after a restart.
There is code in Bundle.java to retrieve the bitstream info 
from the Context cache, is there any way to clear the cache without a restart?

Regards,
Ben


[Jisc]http://www.jisc.ac.uk/

Ben Ryan
Jorum Technical Manager

T 0161 275 6032
Skype argaric
Room 5.12 Roscoe Buidling, The University of Manchester, Oxford Road, M13 9PL

jisc.ac.ukhttp://www.jisc.ac.uk/

Jisc is a registered charity (number 1149740) and a company limited by 
guarantee which is registered in England under Company No. 5747339, VAT No. GB 
197 0632 86. Jisc's registered office is: One Castlepark, Tower Hill, Bristol, 
BS2 0JA. T 0203 697 5800. jisc.ac.ukhttp://www.jisc.ac.uk/






--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] REST API not seeing new bitstreams

2015-03-24 Thread Peter Dietz
Hi Ben,

DSpace 4 (4.0, 4.1) had a bug that would result in stale information being
presented by the REST API.
https://jira.duraspace.org/browse/DS-1986

The solution was to use a new context for each request, and ensure that
we're closing the context at the end of each request.

This has been fixed in DSpace 4.2 and 5.0
https://github.com/DSpace/DSpace/pull/567 (patch 4.2)
https://github.com/DSpace/DSpace/pull/561 (patch 5.0)


Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Tue, Mar 24, 2015 at 7:27 AM, Benjamin Ryan benjamin.r...@jisc.ac.uk
wrote:

  Hi,

 DSpace 4.1, Ubuntu 14.04, Tomcat 7, Postgres 9.3



 When adding new bitstreams to items these do not appear in
 the REST API output for the item but are in the output for the bitstream.

 The bistreams appear in the DSpace interface (XMLUI).

 The bitstreams have appeared after a restart.

 There is code in Bundle.java to retrieve the bitstream
 info from the Context cache, is there any way to clear the cache without a
 restart?



 Regards,

 Ben





 [image: Jisc] http://www.jisc.ac.uk/

 *Ben Ryan*
 Jorum Technical Manager

 T 0161 275 6032
 Skype argaric
 Room 5.12 Roscoe Buidling, The University of Manchester, Oxford Road, M13
 9PL

 *jisc.ac.uk http://www.jisc.ac.uk/ *

 Jisc is a registered charity (number 1149740) and a company limited by
 guarantee which is registered in England under Company No. 5747339, VAT No.
 GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill,
 Bristol, BS2 0JA. T 0203 697 5800. jisc.ac.uk http://www.jisc.ac.uk/






 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for
 all
 things parallel software development, from weekly thought leadership blogs
 to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette