You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2012/09/17 14:56:07 UTC

[jira] [Commented] (SANTUARIO-344) XMLSignature keeps file-handle on xml-file

    [ https://issues.apache.org/jira/browse/SANTUARIO-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456978#comment-13456978 ] 

Colm O hEigeartaigh commented on SANTUARIO-344:
-----------------------------------------------


Could you post an example to reproduce the problem? I can't reproduce it. The file is read in via a FileInputStream object, but this is closed in XMLSignatureInput.getBytesFromInputStream(). Maybe garbage collection hasn't kicked in before you are trying to delete the file?

Colm.
                
> XMLSignature keeps file-handle on xml-file
> ------------------------------------------
>
>                 Key: SANTUARIO-344
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-344
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.5.1
>         Environment: Windows (XP, 7)
>            Reporter: Andreas B.
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>
> When creating a signature based on a XML file (i.e. calling the method {{org.apache.xml.security.signature.XMLSignature.sign(Key signingKey)}}) the filehandle to the signed resource (the XML file) stays open after the method has finished (successfully).
> I was able to track it down to the above mentioned method, but then get lost somewhere at {{org.apache.xml.security.signature.Reference}}, which seems to use a cache for resource.
> Background: I want to delete the source-file after signature generation, which is not possible until the VM stops.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira