Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1420

Incorrect Date Comparison in Email Filtering

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ManifoldCF 2.7
    • Fix Version/s: ManifoldCF 2.8
    • Component/s: Email connector
    • Labels:
      None
    • Flags:
      Patch

      Description

      Email date filtering doesn't work correctly.

            else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
              comparisonTerm = ComparisonTerm.LT;
            } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
              comparisonTerm = ComparisonTerm.GT;
            }
      

      It must be as follow:

            else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
              comparisonTerm = ComparisonTerm.GT;
            } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
              comparisonTerm = ComparisonTerm.LT;
            }
      

      Reference: ComparisonTerm

      ComparisonTerm.GT : The greater than operator.
      ComparisonTerm.LT : The less than operator.
      

        Attachments

        1. CONNECTORS-1420.patch
          1 kB
          Cihad Guzel

          Activity

            People

            • Assignee:
              kwright@metacarta.com Karl Wright
              Reporter:
              cguzel Cihad Guzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: