Àlex Magaz Graça commented on Bug DS-449
I also have this problem. You can reproduce it in master by following these steps:

1. Start the harvest scheduler.
2. Create a collection and set it up to harvest form an external source. In my tests I've used the following parameters:

OAI Provider: http://marius.udl.cat/oai/request
OAI Set id: hdl_10459.2_767
Metadata format: Simple Dublin Core
Content being harvested: Harvest metadata only.

3. Click "Import Now".

The harvest will fail with the AuthorizeException.

The problem seems to be that no user is set in the context object before doing the harvesting, and by default the anonymous (ID 0) is used (see [1] and [2]).

[1] https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java#L1323

[2] https://jira.duraspace.org/browse/DS-289?focusedCommentId=17025&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17025
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to