[ 
https://jira.duraspace.org/browse/DS-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28041#comment-28041
 ] 

Bram Luyten (@mire) commented on DS-449:
----------------------------------------

tried to replicate but might have done something wrong

http://pastebin.com/t3agjUQP
                
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to