[
https://jira.duraspace.org/browse/DS-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stuart Lewis updated DS-1042:
-----------------------------
Status: Open (was: Received)
Author: stuartlewis
Date: Tue Sep 27 00:42:49 2011
New Revision: 6744
Log:
[DS-1042] Item Import - errors when no contents file and metadata_*.xml
Modified:
dspace/trunk/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java
Modified:
dspace/trunk/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java
==============================================================================
---
dspace/trunk/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java
(original)
+++
dspace/trunk/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java
Tue Sep 27 00:42:49 2011
@@ -1304,7 +1304,7 @@
String[] dirListing = new File(path).list();
for (String fileName : dirListing)
{
- if (!"dublin_core.xml".equals(fileName) &&
!filename.equals("handle") && !filename.startsWith("metadata_"))
+ if (!"dublin_core.xml".equals(fileName) &&
!fileName.equals("handle") && !fileName.startsWith("metadata_"))
{
throw new FileNotFoundException("No contents file found");
}
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel