harvester.rejectedHandlePrefixes logic error
--------------------------------------------
Key: DS-1100
URL: https://jira.duraspace.org/browse/DS-1100
Project: DSpace
Issue Type: Bug
Components: DSpace API
Reporter: James Russell
Attachments: oai-harvester.patch
The logic in org.dspace.harvest.OAIHarvester extractHandle() is incorrect.
The dspace.cfg parameter 'harvester.rejectedHandlePrefixes' takes multiple
handle prefixes
which it uses to decide whether to accept and use the handle of an incoming
item,
or reject it and generate a new handle.
Unfortunately, the existing program logic will accept a handle which doesn't
match all prefixes,
rather than reject a handle which matches any prefix.
The net result is that this parameter doesn't work if it contains more than
one prefix because the logic will then always accept any incoming handle.
A proposed patch is attached.
--
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
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel