问题
I am using HDIV to protect my web application from the csrf attacks. My application was long developed in Struts-1.3.10. The hyper links and normal pages works well, but except the multipart file upload pages. I get multipartconfig not present exception when I submit a page having the multipart file upload. I tried many way to configure it but nothing worked. There seems to be no good documents in their website. Their example too is full of bugs and their multipart example throws the same exception! How to configure a multipart page with HDIV?
Is owasp-csrfguard easier than using HDIV? share your experiences.
回答1:
There is an issue in HDIV (since 2.1.4 version, previous are ok) related to file uploading in Struts 1 application. Track it in github: https://github.com/hdiv/hdiv/issues/59
We are working on it and any further comments in issue page are welcome.
Issue fixed in HDIV 2.1.8-SNAPSHOT commit
来源:https://stackoverflow.com/questions/25673112/hdiv-multipart-not-configured-struts-1-3