-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WW-4620] Improve XWorkListPropertyAccessor to against DOS attack #105
Conversation
@@ -36,6 +36,7 @@ | |||
* this class will create the necessary blank JavaBeans. | |||
* | |||
* @author Gabriel Zimmerman | |||
* @author Yanming Zhou <zhouyanming@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove author tag. In general you should refrain from doing so. Why? Because.
@@ -45,6 +45,12 @@ | |||
private ObjectFactory objectFactory; | |||
private ObjectTypeDeterminer objectTypeDeterminer; | |||
private OgnlUtil ognlUtil; | |||
private int autoGrowCollectionLimit = 255; | |||
|
|||
@Inject(value="java.util.Collection.autoGrowCollectionLimit", required = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a predefined constant? I mean, does it exist somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't exists anywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I would add struts.
prefix, though. The name suggests that it is something Java specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's OK.
Do you mean you will change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it with prefix "xwork"
ping :) |
I think prefix "xwork" better than "struts"
No description provided.