Merge pull request #613 from apache/WW-5242-cross-action

[WW-5242] Marks struts.mapper.action.prefix.crossNamespaces as deprecated
This commit is contained in:
Lukasz Lenart
2022-10-16 08:53:23 +02:00
committed by GitHub
@@ -241,6 +241,11 @@ public class DefaultActionMapper implements ActionMapper {
this.allowActionPrefix = BooleanUtils.toBoolean(allowActionPrefix);
}
/**
* @deprecated since 6.1.0 - please refactor your application to avoid using this functionality
* @param allowActionCrossNamespaceAccess true to enable cross namespace action access
*/
@Deprecated
@Inject(value = StrutsConstants.STRUTS_MAPPER_ACTION_PREFIX_CROSSNAMESPACES)
public void setAllowActionCrossNamespaceAccess(String allowActionCrossNamespaceAccess) {
this.allowActionCrossNamespaceAccess = BooleanUtils.toBoolean(allowActionCrossNamespaceAccess);