james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Aldrich (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDKIM-18) jdkim verify(InputStream) doesn't clean up temp files until shutdown
Date Sun, 15 Aug 2010 17:21:16 GMT

     [ https://issues.apache.org/jira/browse/JDKIM-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ben Aldrich updated JDKIM-18:
-----------------------------

    Summary: jdkim verify(InputStream) doesn't clean up temp files until shutdown  (was: jdkim
verify(InputStream) doesn't clean up temp files until close )

> jdkim verify(InputStream) doesn't clean up temp files until shutdown
> --------------------------------------------------------------------
>
>                 Key: JDKIM-18
>                 URL: https://issues.apache.org/jira/browse/JDKIM-18
>             Project: JAMES jDKIM
>          Issue Type: Bug
>          Components: library
>    Affects Versions: 0.2
>         Environment: Verified this in solaris 10 and ubuntu 10.04 
> java 1.6.0_13
>            Reporter: Ben Aldrich
>            Priority: Critical
>
> When you pass jdkim an input stream like so :
> new DKIMVerifier().verify(new ByteArrayInputStream(sb.toString().getBytes()));
> the jkdim impl/Message.java creates a mime4j temp file that doesn't get deleted until
the application exits. This causes any system that runs as a daemon to eventually run out
of disk space. 
> I did a quick test and replaced Message.java with my own implementation using the regular
javax MimeMessage to pull out the headers and the app no longer creates the temp files. This
isn't really a good solution though because now I can't pass simple canonicalization. I don't
know mime4j very well but digging through the source it only sets the deleteOnExit flag by
default. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message