Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1613

Array Index Out of Bounds exception, JDBC connector with attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 2.13
    • ManifoldCF 2.14
    • JDBC connector
    • None

    Description

      The following method can throw AIOOBE:

        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);
          }
        }
      

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: