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

Claudia Jürgen updated DS-709:
------------------------------

    Attachment: FlowContainerUtils.java.patch

Hello Andreas,

thanx for raising this issue. For more information about how to contribution, 
create patches etc. see
https://wiki.duraspace.org/display/DSPACE/ContributionGuidelines 

Just changing line 558
if (itemGroups.length != 1 && bitstreamGroups.length != 1)
to
if (itemGroups.length != 1 ||  bitstreamGroups.length != 1)
will still lead to an ArrayIndexOutOfBoundsException.

New patch attached.

Hope that helps

Claudia Jürgen


> ArrayIndexOutOfBoundsException when editing group roles
> -------------------------------------------------------
>
>                 Key: DS-709
>                 URL: https://jira.duraspace.org/browse/DS-709
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>            Reporter: Andreas Schwander
>            Priority: Critical
>         Attachments: FlowContainerUtils.java, FlowContainerUtils.java.patch
>
>
> If a collection has only DEFAULT_ITEM_READ or DEFAULT_BITSTREAM_READ and not 
> both policies an ArrayIndexOutOfBoundsException will occur if the tab "Assign 
> roles" is clicked on the edit collection form.
> The error occurs in the FlowContainerUtils.class of the administrative aspect 
> due to a logical error in getCollectionDefaultRead() in line 558.
> Please find the solution attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to