-
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-5352 Repackage ParametersInterceptor and related classes #829
Conversation
f7fba1e
to
7bd238c
Compare
*/ | ||
public interface NoParameters extends com.opensymphony.xwork2.interceptor.NoParameters { |
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.
Reverse the delegations for easier deletion of deprecated classes
core/src/main/java/org/apache/struts2/interceptor/parameter/ParametersInterceptor.java
Fixed
Show fixed
Hide fixed
core/src/main/java/org/apache/struts2/interceptor/parameter/ParametersInterceptor.java
Fixed
Show fixed
Hide fixed
core/src/main/java/org/apache/struts2/interceptor/parameter/ParametersInterceptor.java
Fixed
Show fixed
Hide fixed
7bd238c
to
4698733
Compare
if (!accepted) { | ||
String message = "Value [{}] of parameter [{}] was not accepted and will be dropped!"; | ||
if (devMode) { | ||
LOG.warn(message, normalizeSpace(value), normalizeSpace(name)); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
HttpParameters parameters = retrieveParameters(ac); | ||
|
||
if (LOG.isDebugEnabled()) { | ||
LOG.debug("Setting params {}", normalizeSpace(getParameterLogMap(parameters))); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
if (devMode) { | ||
LOG.warn(message, normalizeSpace(value), normalizeSpace(name)); | ||
} else { | ||
LOG.debug(message, normalizeSpace(value), normalizeSpace(name)); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.struts2.interceptor.parameter; |
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.
This is an action related interface and I prefer to put them in org.apache.struts2.action
package - this should avoid users' confusion if such interface works with interceptors. wdyt?
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.
Makes sense to me
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 20 New issues |
WW-5352
In preparation for new parameter annotation mechanism