Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6464

connectionTimeout property is ignored by JavaMail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.2
    • Fix Version/s: 2.10.5, 2.11.1, 2.12.0
    • Component/s: camel-mail
    • Labels:
      None
    • Environment:

      mail-1.4.5.jar

    • Estimated Complexity:
      Unknown

      Description

      JavaMail ignores the timeout values set via the connectionTimeout property.

      • Within MailConfiguration::createJavaMailProperties the mail.<protocol>.timeout and mail.<protocol>.connectionTimeout parameters are set as long values
      • In com.sun.mail.util.PropUtil::getInt (line 141) the property is ignored since it is a long value

      Changing the type of connectionTimeout from long to int would be the cleanest solution - another suggestion would be to downcast the connectionTimeout in MailConfiguration::createJavaMailProperties

        Attachments

          Activity

            People

            • Assignee:
              muellerc Christian Müller
              Reporter:
              marcozapletal Marco Zapletal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: