BinaryContentIngester in SWORDv2 creates a new ORIGINALS bundle every time a bitstream is ingested to an Item -------------------------------------------------------------------------------------------------------------
Key: DS-1149 URL: https://jira.duraspace.org/browse/DS-1149 Project: DSpace Issue Type: Bug Components: SWORD Affects Versions: 1.8.2, 1.8.1, 1.8.0 Reporter: Marco Fabiani When ingesting an bitstream to an Item (i.e. adding a file to the media resource), BinaryContentIngester creates a new ORIGINAL bundle even if one is already available. Also, it does not set the MIME-type for the bitstream. The problem is in BinaryContentIngester, line 138: Bundle original = null; original is assigned but never used because at lines 148: Bitstream bs = item.createSingleBitstream(deposit.getInputStream()); which creates a new bundle disregarding the original bundle. This code should solve the problem, and also add the bitstream format field: Bitstream bs = original.createBitstream(deposit.getInputStream()); BitstreamFormat format = this.getFormat(context,deposit.getFilename()); bs.setFormat(format); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.duraspace.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel