Command line utility org.dspace.app.harvest.Harvest -S throws AuthorizeException --------------------------------------------------------------------------------
Key: DS-449 URL: http://jira.dspace.org/jira/browse/DS-449 Project: DSpace 1.x Issue Type: Bug Components: DSpace API Affects Versions: 1.6.0 Reporter: Toni Prieto Attachments: patch_auth_excep_harvest.txt Running the harvest command line utility with -S option (to start the harvest scheduler), the system throws AuthorizeException: Authorization denied for action WRITE on COLLECTION:1 by user 0 Exception: org.dspace.authorize.AuthorizeException: Authorization denied for action WRITE on COLLECTION:1 by user 0 at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:222) at org.dspace.content.Collection.canEdit(Collection.java:1021) at org.dspace.content.Collection.update(Collection.java:958) at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:395) at org.dspace.harvest.OAIHarvester$HarvestThread.runHarvest(OAIHarvester.java:1301) at org.dspace.harvest.OAIHarvester$HarvestThread.run(OAIHarvester.java:1292) at java.lang.Thread.run(Thread.java:619) I have created a quick patch that ignore the authorization system when update the collection. Probably, it isn't the best solution but it works. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel