[ 
http://jira.amdatu.org/jira/browse/AMDATU-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11687#comment-11687
 ] 

Marcel Offermans commented on AMDATU-432:
-----------------------------------------

Verified on my Mac (with 'lsof') that indeed this leaves files open, so this 
needs to be fixed.

There is a lot more crazy stuff going on though:
# every URL is opened twice (once for getLastModified and then again to 
copyResource);
# getLastModified tries to do some crazy thing if URLConnection.getLastModified 
returns zero (trying to find the path part of a URL with an arbitrary protocol 
on your local filesystem?!?!?)
# I'm not sure if setting the content length header after having written all 
the data to the response works? Anyone?
                
> ResourceServlet getLastModified results in open FileDescriptor
> --------------------------------------------------------------
>
>                 Key: AMDATU-432
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-432
>             Project: Amdatu
>          Issue Type: Bug
>            Reporter: Arthur Meijer
>            Assignee: Marcel Offermans
>             Fix For: 0.2.1
>
>
> The getLastModified() method of the ResourceServlet leaves files open when 
> retrieving the lastmodified header for file:// urls.

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

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to