Uploaded image for project: 'Enterprise Mail Handler for JIRA (JEMH)'
  1. JEMH-999

Mulitpart/related and alternative content could cause an outof bounds error

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.64
    • Component/s: None
    • Labels:
      None
    • Internal Complexity:
      Unknown
    • Internal Value:
      Unknown

      Description

      ArrayIndexOutOfBoundsException: 2 >= 2:
      java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
      	at java.util.Vector.elementAt(Vector.java:447)
      	at javax.mail.Multipart.getBodyPart(Multipart.java:156)
      	at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:258)
      	at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:902)
      	at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:781)
      	at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:775)
      	at com.javahollic.jira.emh.service.filter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:66)
      	at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:97)
      	at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:648)
      	at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:210)
      	at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:43)
      	at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:356)
      	at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:259)
      	at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:344)
      

      Problem located and fixed locally, awaiting a build for 5.0.x compatible and 5.1.x

        Attachments

          Activity

            People

            • Assignee:
              abrook abrook
              Reporter:
              abrook abrook
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?