[
https://jira.duraspace.org/browse/DS-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stuart Lewis reassigned DS-449:
-------------------------------
Assignee: (was: Stuart Lewis)
> Command line utility org.dspace.app.harvest.Harvest -S throws
> AuthorizeException
> --------------------------------------------------------------------------------
>
> Key: DS-449
> URL: https://jira.duraspace.org/browse/DS-449
> Project: DSpace
> Issue Type: Bug
> Components: DSpace API
> Affects Versions: 1.6.0
> Reporter: Toni Prieto
> Priority: Major
> 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, 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel