Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-317

FromProcessor doesn't delete, throws ClassCastException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Labels:
      None

      Description

      FromRepository doesn't delete messages. Using <delete> results in a ClassCastException:

      java.lang.ClassCastException
      at AvalonMailRepository.java:372
      at FromRepository.java:132

      The code is calling MailRepository.remove(Collection) which expects a Collection<Mail>, but is being passed a Collection<String>.

        Issue Links

          Activity

          Hide
          noel Noel J. Bergman added a comment -

          Fixed. Changed code to iterate over the Collection in the mailet.

          Show
          noel Noel J. Bergman added a comment - Fixed. Changed code to iterate over the Collection in the mailet.
          Hide
          sbrewin@apache.org Steve Brewin added a comment -

          As Hes said.

          Show
          sbrewin@apache.org Steve Brewin added a comment - As Hes said.
          Hide
          bago Stefano Bagnara added a comment -

          Can we mark this as closed?

          Show
          bago Stefano Bagnara added a comment - Can we mark this as closed?
          Hide
          danny@apache.org Danny Angus added a comment -

          Closing issue fixed in released version.

          Show
          danny@apache.org Danny Angus added a comment - Closing issue fixed in released version.

            People

            • Assignee:
              Unassigned
              Reporter:
              noel Noel J. Bergman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development