6 Replies Latest reply on Sep 9, 2013 10:10 AM by stuartwhyte

    [Bug?] : (colon) in subject line

    stuartwhyte

      Further to my other post ( Troubleshooting email sources ) a bit of trial an error resulted in the discovery that having : in the subject line results in the email not being scraped correctly, being dropped and not generating an alert.

       

      Hopefully digging through a log might identify why this is happening, but in the interim has anyone else spotted this?

        • Re: [Bug?] : (colon) in subject line
          rtriebwasser

          I created a bug for this.  We will investigate...

          1 of 1 people found this helpful
          • Re: [Bug?] : (colon) in subject line
            stepan.husak

            Hi, Stuart.

            We can't reproduce this behavior.

            Can you provide example of invalid subject line and actual matching rule in your Email Alert Source Settings ??

             

            Additional note:

            are you creating new email, or use Redirecting, Replaying, Forwarding technique of mail client?

            because Alert Central have problems with processing this specific events.

             

            Regards,

            Stepan Husak

              • Re: [Bug?] : (colon) in subject line
                stuartwhyte

                It's a little difficult to actually tie down as we addressed using trial and error.

                 

                We noted that when sending the email (a generated email from a ticketing system) no AC alert was listed when a : was placed in the subject line.  When the : was removed, the email was scrapped correctly.  This was repeatable.

                 

                The error could in fact be with the scrapping, but seeing as the alert isn't listed, and without access to the logs (see my other posting) we have no way of identifying where it has fallen over.

                  • Re: [Bug?] : (colon) in subject line
                    stuartwhyte

                    From the log, these lines seem to coincide with the times of the failed messages:

                     

                    14:31:23.257 [EmailPoller-1]  WARN c.s.oncall.email.EmailPollerImpl - Failed to process email
                    java.io.IOException: No content
                        at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:113) ~[mail-1.4.5.jar:1.4.5]
                        at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107) ~[mail-1.4.5.jar:1.4.5]
                        at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790) ~[na:1.7.0_04]
                        at javax.activation.DataHandler.getContent(DataHandler.java:537) ~[na:1.7.0_04]
                        at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1420) ~[mail-1.4.5.jar:1.4.5]
                        at com.solarwinds.oncall.email.EmailPollerImpl.generateAndPublishInboundMessages(EmailPollerImpl.java:564) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl.runEmailFetching(EmailPollerImpl.java:332) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl.access$600(EmailPollerImpl.java:69) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl$FetchEmail.run(EmailPollerImpl.java:268) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_04]
                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.7.0_04]
                        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.7.0_04]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_04]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_04]
                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_04]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_04]
                        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]
                    14:31:23.350 [EmailPoller-1] ERROR c.s.oncall.email.EmailPollerImpl - Email message not set to delete, forcing delete to clear all messages in mail box.
                    15:06:31.195 [EmailPoller-1]  WARN c.s.oncall.email.EmailPollerImpl - Failed to process email
                    java.io.IOException: No content
                        at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:113) ~[mail-1.4.5.jar:1.4.5]
                        at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107) ~[mail-1.4.5.jar:1.4.5]
                        at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790) ~[na:1.7.0_04]
                        at javax.activation.DataHandler.getContent(DataHandler.java:537) ~[na:1.7.0_04]
                        at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1420) ~[mail-1.4.5.jar:1.4.5]
                        at com.solarwinds.oncall.email.EmailPollerImpl.generateAndPublishInboundMessages(EmailPollerImpl.java:564) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl.runEmailFetching(EmailPollerImpl.java:332) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl.access$600(EmailPollerImpl.java:69) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at com.solarwinds.oncall.email.EmailPollerImpl$FetchEmail.run(EmailPollerImpl.java:268) [oncall-email-1.0.1-SNAPSHOT.jar:na]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_04]
                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.7.0_04]
                        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.7.0_04]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_04]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_04]
                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_04]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_04]
                        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]
                    15:06:31.239 [EmailPoller-1] ERROR c.s.oncall.email.EmailPollerImpl - Email message not set to delete, forcing delete to clear all messages in mail box.