[ 
https://issues.apache.org/jira/browse/CONNECTORS-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Wright resolved CONNECTORS-1613.
-------------------------------------
    Resolution: Fixed

r1862000


> Array Index Out of Bounds exception, JDBC connector with attributes
> -------------------------------------------------------------------
>
>                 Key: CONNECTORS-1613
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1613
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: JDBC connector
>    Affects Versions: ManifoldCF 2.13
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>            Priority: Major
>             Fix For: ManifoldCF 2.14
>
>
> The following method can throw AIOOBE:
> {code}
>   protected void applyMultiAttributeValues(final RepositoryDocument rd, final 
> Map<String, Set<String>> values)
>     throws ManifoldCFException
>   {
>     if (values == null)
>     {
>       return;
>     }
>     for (final String attributeName : values.keySet())
>     {
>       final Set<String> attributes = values.get(attributeName);
>       final String[] attributeValues = new String[values.size()];
>       int i = 0;
>       for (final String attributeValue : attributes)
>       {
>         attributeValues[i++] = attributeValue;
>       }
>       rd.addField(attributeName, attributeValues);
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to