[jira] [Commented] (CONNECTORS-1394) ArrayIndexOutOfBoundsException when crawling email

2017-03-04 Thread Cihad Guzel (JIRA)

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

Cihad Guzel commented on CONNECTORS-1394:
-

Hi [~kwri...@metacarta.com],

In some cases the "disposition" field has upper text. So, should use 
"disposition.toLowerCase(Locale.ROOT);" 


> ArrayIndexOutOfBoundsException when crawling email
> --
>
> Key: CONNECTORS-1394
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1394
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: Email connector
>Affects Versions: ManifoldCF 2.6
>Reporter: Cihad Guzel
>Assignee: Karl Wright
> Fix For: ManifoldCF 2.7
>
>
> {code}
> DEBUG 2017-03-02 20:29:48,937 (Worker thread '1') - Email: Processing 
> document identifier 
> 'test:'
> FATAL 2017-03-02 20:30:50,909 (Worker thread '1') - Error tossed: 1
> java.lang.ArrayIndexOutOfBoundsException: 1
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:640)
>   at 
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
> DEBUG 2017-03-02 20:30:56,816 (Worker thread '3') - Email: Processing 
> document identifier 
> 'test:'
> ERROR 2017-03-02 20:34:02,184 (Seeding thread) - Email: Error finding emails: 
> * BYE JavaMail Exception: java.net.SocketException: Connection reset
> javax.mail.MessagingException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset;
>   nested exception is:
>   com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1820)
> Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.iap.Protocol.handleResult(Protocol.java:356)
>   at 
> com.sun.mail.imap.protocol.IMAPProtocol.examine(IMAPProtocol.java:886)
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:925)
>   ... 2 more
> {code}



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


[jira] [Resolved] (CONNECTORS-1394) ArrayIndexOutOfBoundsException when crawling email

2017-03-04 Thread Karl Wright (JIRA)

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

Karl Wright resolved CONNECTORS-1394.
-
Resolution: Fixed

r1785489.

I didn't commit the patch as uploaded since it would have sent null values to 
the output connector.  Instead I force attachments that have no filename to 
have a type of empty string.


> ArrayIndexOutOfBoundsException when crawling email
> --
>
> Key: CONNECTORS-1394
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1394
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: Email connector
>Affects Versions: ManifoldCF 2.6
>Reporter: Cihad Guzel
>Assignee: Karl Wright
> Fix For: ManifoldCF 2.7
>
>
> {code}
> DEBUG 2017-03-02 20:29:48,937 (Worker thread '1') - Email: Processing 
> document identifier 
> 'test:'
> FATAL 2017-03-02 20:30:50,909 (Worker thread '1') - Error tossed: 1
> java.lang.ArrayIndexOutOfBoundsException: 1
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:640)
>   at 
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
> DEBUG 2017-03-02 20:30:56,816 (Worker thread '3') - Email: Processing 
> document identifier 
> 'test:'
> ERROR 2017-03-02 20:34:02,184 (Seeding thread) - Email: Error finding emails: 
> * BYE JavaMail Exception: java.net.SocketException: Connection reset
> javax.mail.MessagingException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset;
>   nested exception is:
>   com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1820)
> Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.iap.Protocol.handleResult(Protocol.java:356)
>   at 
> com.sun.mail.imap.protocol.IMAPProtocol.examine(IMAPProtocol.java:886)
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:925)
>   ... 2 more
> {code}



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


[jira] [Commented] (CONNECTORS-1394) ArrayIndexOutOfBoundsException when crawling email

2017-03-04 Thread Cihad Guzel (JIRA)

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

Cihad Guzel commented on CONNECTORS-1394:
-

I have created a PR from github: https://github.com/apache/manifoldcf/pull/18

> ArrayIndexOutOfBoundsException when crawling email
> --
>
> Key: CONNECTORS-1394
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1394
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: Email connector
>Affects Versions: ManifoldCF 2.6
>Reporter: Cihad Guzel
> Fix For: ManifoldCF 2.7
>
>
> {code}
> DEBUG 2017-03-02 20:29:48,937 (Worker thread '1') - Email: Processing 
> document identifier 
> 'test:'
> FATAL 2017-03-02 20:30:50,909 (Worker thread '1') - Error tossed: 1
> java.lang.ArrayIndexOutOfBoundsException: 1
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:640)
>   at 
> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
> DEBUG 2017-03-02 20:30:56,816 (Worker thread '3') - Email: Processing 
> document identifier 
> 'test:'
> ERROR 2017-03-02 20:34:02,184 (Seeding thread) - Email: Error finding emails: 
> * BYE JavaMail Exception: java.net.SocketException: Connection reset
> javax.mail.MessagingException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset;
>   nested exception is:
>   com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
>   at 
> org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1820)
> Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
> java.net.SocketException: Connection reset
>   at com.sun.mail.iap.Protocol.handleResult(Protocol.java:356)
>   at 
> com.sun.mail.imap.protocol.IMAPProtocol.examine(IMAPProtocol.java:886)
>   at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:925)
>   ... 2 more
> {code}



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


[jira] [Created] (CONNECTORS-1394) ArrayIndexOutOfBoundsException when crawling email

2017-03-04 Thread Cihad Guzel (JIRA)
Cihad Guzel created CONNECTORS-1394:
---

 Summary: ArrayIndexOutOfBoundsException when crawling email
 Key: CONNECTORS-1394
 URL: https://issues.apache.org/jira/browse/CONNECTORS-1394
 Project: ManifoldCF
  Issue Type: Bug
  Components: Email connector
Affects Versions: ManifoldCF 2.6
Reporter: Cihad Guzel
 Fix For: ManifoldCF 2.7


{code}
DEBUG 2017-03-02 20:29:48,937 (Worker thread '1') - Email: Processing document 
identifier 
'test:'
FATAL 2017-03-02 20:30:50,909 (Worker thread '1') - Error tossed: 1
java.lang.ArrayIndexOutOfBoundsException: 1
at 
org.apache.manifoldcf.crawler.connectors.email.EmailConnector.processDocuments(EmailConnector.java:640)
at 
org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399)
DEBUG 2017-03-02 20:30:56,816 (Worker thread '3') - Email: Processing document 
identifier 
'test:'
ERROR 2017-03-02 20:34:02,184 (Seeding thread) - Email: Error finding emails: * 
BYE JavaMail Exception: java.net.SocketException: Connection reset
javax.mail.MessagingException: * BYE JavaMail Exception: 
java.net.SocketException: Connection reset;
  nested exception is:
com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
java.net.SocketException: Connection reset
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961)
at 
org.apache.manifoldcf.crawler.connectors.email.EmailSession.openFolder(EmailSession.java:99)
at 
org.apache.manifoldcf.crawler.connectors.email.EmailConnector$OpenFolderThread.run(EmailConnector.java:1820)
Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: 
java.net.SocketException: Connection reset
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:356)
at 
com.sun.mail.imap.protocol.IMAPProtocol.examine(IMAPProtocol.java:886)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:925)
... 2 more
{code}



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