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

Mails in file repositories cannot be removed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64 Bit
      JDK 8 Update 111

      Description

      If a mail is coming in and has matched, we store it in our own file repository to handle the content of the mail later on. If the content is NOT read, it is possible to remove the mail from the repository. After reading the content (method getContent()) the removal is impossible. It causes an exception

      Exception in thread "Thread-10" java.lang.RuntimeException: Exception caught while removing an object: java.io.IOException: Unable to delete file: PathToTheJamesServer\bin..\var\mail\queue\draft\4D61696C313530323238313638303734332D62343337633939352D323963352D343862652D386638312D643066626533313232623533.Repository.FileStreamStore
      at org.apache.james.repository.file.AbstractFileRepository.remove(AbstractFileRepository.java:274)
      at org.apache.james.mailrepository.file.FileMailRepository.internalRemove(FileMailRepository.java:257)
      at org.apache.james.mailrepository.lib.AbstractMailRepository.remove(AbstractMailRepository.java:152)
      at de.desy.test.james.mailet.DraftMailetProcessor.processMailAlternate(DraftMailetProcessor.java:105)
      at de.desy.test.james.mailet.DraftMailetProcessor.run(DraftMailetProcessor.java:82)
      at java.lang.Thread.run(Thread.java:745)

      The java process still holds a file handle to the FileStreamStore file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              markus-moeller Markus Moeller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: