Item Import - errors when no contents file and metadata_*.xml -------------------------------------------------------------
Key: DS-1042 URL: https://jira.duraspace.org/browse/DS-1042 Project: DSpace Issue Type: Bug Components: DSpace API Affects Versions: 1.7.2 Reporter: Stuart Lewis Assignee: Stuart Lewis Fix For: 1.8.0 ItemImport.java String[] dirListing = new File(path).list(); for (String fileName : dirListing) { if (!"dublin_core.xml".equals(fileName) && !filename.equals("handle") && !filename.startsWith("metadata_")) { throw new FileNotFoundException("No contents file found"); } } System.out.println("No contents file found - but only metadata files found. Assuming metadata only."); The second and third conditionals in the if statement should use 'fileName' rather than 'filename' -- 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 ------------------------------------------------------------------------------ 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-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel