Increases scope when location parsing is avoided

This commit is contained in:
Lukasz Lenart
2018-05-02 08:25:06 +02:00
parent b3bad5ea44
commit 6efaf900d4
3 changed files with 4 additions and 3 deletions
@@ -134,9 +134,9 @@ public class PostbackResult extends StrutsResultSupport {
if (actionName != null) {
actionName = conditionalParse(actionName, invocation);
parseLocation = false;
if (namespace == null) {
namespace = invocation.getProxy().getNamespace();
parseLocation = false;
} else {
namespace = conditionalParse(namespace, invocation);
}
@@ -159,9 +159,9 @@ public class ServletActionRedirectResult extends ServletRedirectResult implement
*/
public void execute(ActionInvocation invocation) throws Exception {
actionName = conditionalParse(actionName, invocation);
parseLocation = false;
if (namespace == null) {
namespace = invocation.getProxy().getNamespace();
parseLocation = false;
} else {
namespace = conditionalParse(namespace, invocation);
}
@@ -172,6 +172,8 @@ public class PortletActionRedirectResult extends PortletResult {
*/
public void execute(ActionInvocation invocation) throws Exception {
actionName = conditionalParse(actionName, invocation);
parseLocation = false;
String portletNamespace = (String)invocation.getInvocationContext().get(PortletConstants.PORTLET_NAMESPACE);
if (portletMode != null) {
Map<PortletMode, String> namespaceMap = getNamespaceMap(invocation);
@@ -179,7 +181,6 @@ public class PortletActionRedirectResult extends PortletResult {
}
if (namespace == null) {
namespace = invocation.getProxy().getNamespace();
parseLocation = false;
} else {
namespace = conditionalParse(namespace, invocation);
}