Lukasz Lenart created WW-5806:
---------------------------------

             Summary: Struts Boot: reject invalid method and result names in 
the fluent action API
                 Key: WW-5806
                 URL: https://issues.apache.org/jira/browse/WW-5806
             Project: Struts 2
          Issue Type: Improvement
          Components: Core
            Reporter: Lukasz Lenart
             Fix For: 7.6.0


Follow-up to [WW-5791|https://issues.apache.org/jira/browse/WW-5791] (review of 
PR [#2053|https://github.com/apache/struts/pull/2053]).

{{ActionDefinition#method(String)}}, {{#result(String, String)}} and 
{{#redirectAction(String, String)}} accept a {{null}} or blank method or result 
name. The bad value only surfaces later, while the registry is translated into 
{{ActionConfig}} / {{ResultConfig}}, with a less clear error.

Expected: these setters throw a {{ConfigurationException}} immediately, naming 
the action and the invalid value, like {{result(...)}} already does for a 
non-{{.ftl}} path.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to