本文介绍了HDIV-未配置多部分-Struts 1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HDIV保护我的Web应用程序免受csrf攻击.我的应用程序是在Struts-1.3.10中开发的.超链接和普通页面运行良好,但分段文件上传页面除外.提交包含多部分文件上传的页面时,出现multipartconfig不存在异常的情况.我尝试了许多方法来配置它,但没有任何效果.他们的网站上似乎没有好的文件.他们的例子中也充满了错误,而他们的多部分例子抛出了同样的异常!如何使用HDIV配置多页页面?

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?

owasp-csrfguard是否比使用HDIV更容易?分享您的经验.

Is owasp-csrfguard easier than using HDIV? share your experiences.

推荐答案

HDIV中存在一个问题(因为2.1.4版本,以前是可以的)与Struts 1应用程序中的文件上传有关.在github中对其进行跟踪: https://github.com/hdiv/hdiv/issues/59

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.

问题已在HDIV 2.1.8-SNAPSHOT中修复提交

Issue fixed in HDIV 2.1.8-SNAPSHOT commit

这篇关于HDIV-未配置多部分-Struts 1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-27 16:32