Jake, What you describe is the expected functionality for deleting bitstreams using ItemUpdate. Looking at the DSpace API for Bundle.deleteBitstream(), there is no comment on what happens if the bundle is empty. In the XMLUI interface of the AdminUI , that application chooses to remove the bundle if it is empty. It maybe there are some use cases when running the ItemUpdate utility where the bundle will be reused and it is desirable to retain the permissions, etc.
I recommend that you submit this as a requested change on the DSpace Jira ( jira.dspace.org ) and let the committers make a recommendation. --Bill ================================== Date: Thu, 22 Sep 2011 14:29:11 -0300 From: Jacob Sanford<[email protected]> Subject: [Dspace-tech] Potential Bug in itemupdate tool? To:[email protected] Message-ID:<[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed In an attempt lately to cull out offensive bitstreams in our DSpace 1.7.2 (OS : RHEL Server 5.7), we have: - Used the CLI export tool to write item exports. - Added target bitstream_id(s) to each 'delete_contents' file in the export structure - Invoked updateitem -D (which successfully remove the bitstreams from the repository). This works swimmingly for most instances. If the last bitstream in a bundle is removed, however, the 'updateitem' tool does not appear to perform the additional step of removing the unreferenced bundle from the database. Deleting a similar 'final' item of a bundle through the admin interface does not appear to cause this problem. Has anyone else observed this behavior? Jake -- Jacob Sanford Developer, Electronic Text Center University of New Brunswick Libraries (Fredericton) [email protected] (506)447-3458 -- ------------ William Hays Software Development& Analysis MIT Libraries E25-131 617.324.5682 (phone) [email protected] ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

