[ 
https://issues.apache.org/jira/browse/CONNECTORS-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948890#comment-15948890
 ] 

Cihad Guzel commented on CONNECTORS-1396:
-----------------------------------------

I debug it:

HttpPoster.java : 
{code}
if (mimeTypeAttributeName != null)
      {
        String mimeType = document.getMimeType();
        if (!StringUtils.isBlank(mimeType))
          writeField(out,LITERAL+mimeTypeAttributeName,mimeType);
      }
{code}
Here is the value of attachment's mime type: "application/msword; 
name=SampleDOCFile_100kb.doc"

> Email processing multipart casting problem
> ------------------------------------------
>
>                 Key: CONNECTORS-1396
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1396
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Email connector
>    Affects Versions: ManifoldCF 2.6
>            Reporter: Cihad Guzel
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.7
>
>         Attachments: CONNECTORS-1396.patch
>
>
> I try email connector with exchange server 2013. I have some errors.
> If I select the "Encoding of Attachment" from metadata tab of email connector:
> {code}
> DEBUG 2017-03-08 19:31:13,646 (Worker thread '1') - Email: Processing 
> document identifier 
> 'INBOX:<[email protected]>'
> FATAL 2017-03-08 19:31:18,243 (Worker thread '1') - Error tossed: 
> java.lang.String cannot be cast to javax.mail.Multipart
> java.lang.ClassCastException: java.lang.String cannot be cast to 
> javax.mail.Multipart
>       at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:631)
>       at 
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
> {code}
> If I select the "MIME type of attachment" from metadata tab of email 
> connector:
> {code}
> DEBUG 2017-03-08 19:37:40,026 (Worker thread '40') - Email: Processing 
> document identifier 
> 'INBOX:<[email protected]>'
> FATAL 2017-03-08 19:37:40,633 (Worker thread '30') - Error tossed: 
> java.lang.String cannot be cast to javax.mail.Multipart
> java.lang.ClassCastException: java.lang.String cannot be cast to 
> javax.mail.Multipart
>       at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:651)
>       at 
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
> {code}
> I saw similar issue : https://issues.apache.org/jira/browse/CONNECTORS-1260



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to