Jacopo,
i have no idea what you want to achieve with your questions. You are
talking about a commit i did more than 3 years ago which was done by one
of my people. Since 2005 i am on the project with more than 2000
commits so in average one per day. I hope you understand that i can just
guess, just as you, why this was done. Probably this was done as part of
a housekeeping job to delete all the files which were produced by
registrations.
I thought we agreed that nobody owns any code so please if you do not
like this code go ahead and change it? As I already mentioned we are
extremely busy and currently we just contribute the parts which
customers ask us to do and which do not need much extra time.
Regards,
Hans
On 05/07/2012 07:36 PM, Jacopo Cappellato (JIRA) wrote:
[
https://issues.apache.org/jira/browse/OFBIZ-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269569#comment-13269569
]
Jacopo Cappellato commented on OFBIZ-4856:
------------------------------------------
Hans,
what is the purpose of the code in Captcha.deleteFile?
public static void deleteFile() {
if (CAPTCHA_FILE_PATH != null) {
File file = new File(CAPTCHA_FILE_PATH);
file.delete();
}
}
If I read it right it deletes the folder runtime/tempfiles/captcha/ rather than
an individual file.
webapp "tempfiles" is not successfully loaded because of
java.io.FileNotFoundException during startup
-----------------------------------------------------------------------------------------------------
Key: OFBIZ-4856
URL: https://issues.apache.org/jira/browse/OFBIZ-4856
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Fix For: SVN trunk
Attachments: OFBIZ-4856.patch
During startup, there's a "java.io.FileNotFoundException" thrown out when ofbiz trying to
load webapp "tempfiles" which is defined by framework/images component.
The file not found is "runtime/tempfiles/WEB-INF/web.xml". This file does not
exist from the very first, catalina container will use default web.xml instead.
I apply a patch for this issue to catch the "java.io.FileNotFoundException" and
bypass it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira