Lukasz Lenart created WW-5856:
---------------------------------
Summary: Config Browser "Default location" link ignores the
action's declared extension
Key: WW-5856
URL: https://issues.apache.org/jira/browse/WW-5856
Project: Struts 2
Issue Type: Bug
Components: Plugin - Config Browser
Reporter: Lukasz Lenart
Fix For: 7.6.0
The action page of the Config Browser ({{showConfig.ftl}}) builds the "Default
location" link from the first value of the global {{struts.action.extension}}
constant ({{ActionNamesAction.getExtension()}}).
Since WW-4164 (7.5.0) a package or an action can declare its own {{extension}}
attribute, and {{ActionExtensionInterceptor}} rejects requests that use any
other extension. For such actions the link points to a URL the framework
rejects.
*Expected*
* Use {{ActionConfig.getExtensions()}} when it is not empty, otherwise fall
back to the global extension.
* When more than one extension is declared, render one link per extension.
*Acceptance*
* An action declared with {{extension="json"}} links to {{.../name.json}}.
* Actions without a declared extension render exactly as today.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)