[
https://issues.apache.org/struts/browse/WW-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Victor Neo updated WW-1818:
---------------------------
Attachment: Dispatcher.diff
From:
if (tempdir != null) {
saveDir = tempdir.toString();
}
To:
if (tempdir != null) {
saveDir = tempdir.toString();
setMultipartSaveDir(saveDir);
}
This should set it to only log the error once, and use the tempdir for
subsequent requests.
> Reduce redundant logging in Dispatcher
> --------------------------------------
>
> Key: WW-1818
> URL: https://issues.apache.org/struts/browse/WW-1818
> Project: Struts 2
> Issue Type: Improvement
> Components: Dispatch
> Affects Versions: 2.0.6
> Reporter: Jasper Rosenberg
> Priority: Trivial
> Fix For: 2.1.x
>
> Attachments: Dispatcher.diff
>
>
> Every time you have a request with content type "multipart/form-data",
> Dispatcher method getSaveDir() is called.
> If you do not have the "struts.multipart.saveDir" property set, every time
> you get the log info messsage:
> "Unable to find 'struts.multipart.saveDir' property setting. Defaulting to
> javax.servlet.context.tempdir"
> It would be nice if this message was only output the first time getSaveDir()
> was called. One simple way to do this would be to set multipartSaveDir to be
> tempdir after the first time through this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.