[ 
https://jira.duraspace.org/browse/DS-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark H. Wood updated DS-449:
----------------------------

    Status: Accepted  (was: Received)
    
> 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
>            Assignee: Mark H. Wood
>            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

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to